Is it possible to find Android devices in a Wifi network?
I thought it might be possible with a broadcast address, but it doesn't work.
I get an answer if I open http://192.168.1.101:8080/wotablet. But not http://192.168.1.255:8080/wotablet. Trying out all possible IP addresses is not practicable because it takes several seconds before the answer comes that the page is not reachable.
I'm about to create a solution to exchange the clipboard between the computer and an android device. It works but only if I know the IP Address of the android device.
Find Android devices in Wifi network
Moderator: Martin
Re: Find Android devices in Wifi network
how about using an external place (like dropbox or gdrive) so Android, once your flow has been started started, would "register" itself by putting its own IP address in a text file.
Then PC app could query the same location, read the file to get Android's IP address and then try to contact that address directly?
Then PC app could query the same location, read the file to get Android's IP address and then try to contact that address directly?
Re: Find Android devices in Wifi network
This would indeed be nice,
Btw @martin why is stopfli.com a thing?
Btw @martin why is stopfli.com a thing?
Unofficial AutoMagic Telegram Group: https://t.me/automagicforandroid
Check out my other flows here: https://github.com/Bluscream/AutoMagicFlows or here.
Check out my other flows here: https://github.com/Bluscream/AutoMagicFlows or here.
Re: Find Android devices in Wifi network
Hi,
You can ignore the stopfli-site. It was temporarily used for a few tests and I forgot to remove it. It should stop working soon...
Regards,
Martin
You can ignore the stopfli-site. It was temporarily used for a few tests and I forgot to remove it. It should stop working soon...
Regards,
Martin
Re: Find Android devices in Wifi network
I use this now (works without root on my device:
Thanks for the info martin, i almost thought i entered my login on a scam site for a second xd
Code: Select all
// Execute Command: cat /proc/net/arp
stdout = split(stdout, "\n");
header = removeElement(stdout, 0);
wifi_devices = newMap();
for (i in stdout)
{
split = split(i, "\\s+");
ip = split[0];
wifi_devices[ip] = newMapFromValues(
"type", split[1],
"flags", split[2],
"mac", split[3],
"mask", split[4],
"adapter", split[5]
);
}
Unofficial AutoMagic Telegram Group: https://t.me/automagicforandroid
Check out my other flows here: https://github.com/Bluscream/AutoMagicFlows or here.
Check out my other flows here: https://github.com/Bluscream/AutoMagicFlows or here.
Re: Find Android devices in Wifi network
But arp only contain the devices address that have communicate to our phone within last several minutes. And sometimes it doesn't even have the devices address I just ping.
Still have to use ping to all possible address and parse the result to grep only for the reply one.
Still have to use ping to all possible address and parse the result to grep only for the reply one.
Index of Automagic useful thread List of my other useful posts (and others')
Xiaomi Redmi Note 5 (whyred), AOSP Extended v6.7 build 20200310 Official, Android Pie 9.0, Rooted.
Xiaomi Redmi Note 5 (whyred), AOSP Extended v6.7 build 20200310 Official, Android Pie 9.0, Rooted.