How to scan all devices on local network using flutter

Viewed 406

I am facing a problem with my flutter application I want to get a list of nearby devices on my same network for android 10 and below I am running this command using Process.run: ip neigh show however this command seems to be forbidden on android 11 and above as it always returns

Cannot bind Netlink socket: Permission denied

and not returning anything I tried the arp-scanner to check if it will work and to my luck, it worked but it has some data missing I need to get IP Address, MAC Address and Hostname the previous flutter plugin only return the IP addresses and always return null for the mac address.

If anyone has any suggestions on how to do this please help.

0 Answers
Related