hexene / LocalVPN

A packet interceptor for Android built on top of VpnService
Apache License 2.0
930 stars 367 forks source link

java.net.NoRouteToHostException: No route to host #40

Open eakteam opened 6 years ago

eakteam commented 6 years ago
E/TCPInput: Connection error: 111.13.142.2:5222:50418
    java.net.NoRouteToHostException: No route to host
        at sun.nio.ch.SocketChannelImpl.checkConnect(Native Method)
        at sun.nio.ch.SocketChannelImpl.finishConnect(SocketChannelImpl.java:742)
        at xyz.hexene.localvpn.TCPInput.processConnect(TCPInput.java:93)
        at xyz.hexene.localvpn.TCPInput.run(TCPInput.java:70)
        at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:428)
        at java.util.concurrent.FutureTask.run(FutureTask.java:237)
        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1133)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:607)
        at java.lang.Thread.run(Thread.java:760)
DrBrad commented 6 years ago

Has this bug been fixed?

DrBrad commented 6 years ago

This error seems to only be from wifi... 4G is not affected as badly by this error.

DrBrad commented 6 years ago

My guess is that its due to packet sizes being too large. If you look at the TCPInput, you can see that he wrote: // TODO: Set MSS for receiving larger packets from the device