OpenWlanMapNlpBackend
OpenWlanMapNlpBackend copied to clipboard
OpenWLANMap API refusing connection
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.
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.
libwlocate from sf has changed the way pulling data from openwlanmap.org from using socket to http.
So this is a libwlocate issue?