Skip to content

OpenWLANMap API refusing connection #3

@n76

Description

@n76

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions