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

OpenWLANMap API refusing connection #3

Open
n76 opened this issue Dec 9, 2014 · 2 comments
Open

OpenWLANMap API refusing connection #3

n76 opened this issue Dec 9, 2014 · 2 comments

Comments

@n76
Copy link

n76 commented Dec 9, 2014

Might be an issue with OpenWLANMap rather than this code but I am getting a connection refused error:

W/System.err(18039): java.net.ConnectException: failed to connect to api.openwlanmap.org/85.25.149.22 (port 10443): connect failed: ECONNREFUSED (Connection refused)
W/System.err(18039): at libcore.io.IoBridge.connect(IoBridge.java:114)
W/System.err(18039): at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:192)
W/System.err(18039): at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:172)
W/System.err(18039): at java.net.Socket.startupSocket(Socket.java:566)
W/System.err(18039): at java.net.Socket.tryAllAddresses(Socket.java:128)
W/System.err(18039): at java.net.Socket.(Socket.java:178)
W/System.err(18039): at java.net.Socket.(Socket.java:150)
W/System.err(18039): at com.vwp.libwlocate.WLocate.get_position(WLocate.java:172)
W/System.err(18039): at com.vwp.libwlocate.WLocate.run(WLocate.java:297)
W/System.err(18039): at java.lang.Thread.run(Thread.java:841)
W/System.err(18039): Caused by: libcore.io.ErrnoException: connect failed: ECONNREFUSED (Connection refused)
W/System.err(18039): at libcore.io.Posix.connect(Native Method)
W/System.err(18039): at libcore.io.BlockGuardOs.connect(BlockGuardOs.java:85)
W/System.err(18039): at libcore.io.IoBridge.connectErrno(IoBridge.java:127)
W/System.err(18039): at libcore.io.IoBridge.connect(IoBridge.java:112)
W/System.err(18039): ... 9 more
D/org.microg.nlp.backend.openwlanmap.BackendService(18039): wloc_return_position ret=1 lat=0.000000 lon=0.000000 radius=10000.000000 ccode=0 cog=-1.000000

Looks like there is a newer libwlocate but the new one is now attempting to do more than just look up WiFi locations and includes GPS and IP location logic. If you attempt to simply use that in OpenWlanMapNlpBackend there is an error due to starting the GPS receiver in a different thread.

It looks like the new libwlocate uses the same port and IP address, so maybe the issue is with the server rather than this code. Or maybe they are blocking my IP address for some reason.

@CokeFever
Copy link

libwlocate from sf has changed the way pulling data from openwlanmap.org from using socket to http.

@frazzmark
Copy link

So this is a libwlocate issue?

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

3 participants