Open rohan2817 opened 6 years ago
Thanks for your report! I don't think I will be able to easily reproduce this on my end, unfortunately. Could you help me by stepping through the setup process, trying to check where the host address is being returned from? That would be a good first lead. I suppose it might come from WifiManager
's involvement, but I want to make sure.
I have 2 android devices connected to a router using ethernet cables and tried to discover service in one device which was registered from another one.
My first assumption on this is the library is trying to get host address from WifiManager
, but as I am using Ethernet, host address needs to be fetched from ConnectivityManager
For reproducing this I would suggest using an OTG Ethernet Adapter eg: OTG-Ethernet
When I try to use this library in android devices connected to WiFi network it works smoothly and discovers the service as desired.
But when I try to use it on Android devices connected to network through Ethernet cable it finds/discovers the service but it returns host address as 0.0.0.0
Is there any solution to find host address while connected over ethernet, or it only supports devices connected to WiFi.