Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

UnknownHostException after switch WIFI #23

Open
felangga opened this issue Jan 7, 2019 · 1 comment
Open

UnknownHostException after switch WIFI #23

felangga opened this issue Jan 7, 2019 · 1 comment

Comments

@felangga
Copy link

felangga commented Jan 7, 2019

Hello, after I switch to another WiFi (with internet connection) and make a connection to my server, it show an error
java.net.UnknownHostException: Unable to resolve host "xxxx": No address associated with hostname

But when I closed my apps and open via browser, the address is accessible.
Any suggestion ?

@griffithsb
Copy link

I've just worked through this problem. It's related to the bindProcessToNetwork() call which has been moved in and out of the library over the last few releases.

As a test try using wifiutils:1.6.0 which does not bind sockets to processes (Q or later). This worked for me but now I'm now stuck on this revision. It would be handy if the binding was an option.

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

No branches or pull requests

2 participants