Skip to content
This repository has been archived by the owner on May 3, 2024. It is now read-only.

Getting host address as 0.0.0.0 #26

Open
rohan2817 opened this issue Feb 8, 2018 · 2 comments
Open

Getting host address as 0.0.0.0 #26

rohan2817 opened this issue Feb 8, 2018 · 2 comments
Labels

Comments

@rohan2817
Copy link

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.

@mannodermaus
Copy link
Owner

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.

@rohan2817
Copy link
Author

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

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

2 participants