Note that there are some explanatory texts on larger screens.

plurals
  1. POSource of SocketTimeoutExceptions
    text
    copied!<p>Sorry if this has been posted somewhere I've been working/looking for days.</p> <p><strong>The Problem:</strong></p> <p>I'm getting SocketTimeoutExceptions when communicating via a peer to peer network with android devices. </p> <p><strong>Details:</strong></p> <p>The android devices use their own mobile network and not wifi when this happens(wifi wasn't designed to work with this anyways). </p> <p>The android devices successfully get their ipAddress from whatismyip.com. </p> <p>One device will send the other their ip address via other means than the peer to peer network we're using. </p> <p>The ip address of the remote device will come successfully to the local device.</p> <p>When the local device responds via the peer to peer network a TimeoutException occurs.</p> <p><strong>What I've tried:</strong></p> <p>Extending the timeout to significantly long periods of time.</p> <p>Using other android devices.</p> <p><strong>Notable:</strong></p> <p>It should be noted that this same peer to peer network has been tested to successfully work amongst PCs(running linux and windows if that matters) on a local area network. Also just tested the peer to peer network across our wired internet connections on our PCs and it definitely works.</p> <p><strong>My guess:</strong></p> <p>I'm thinking that the device is hidden by the isp somehow and I'm going to have to write some code to do something similar to nat traversal but I'm not quite sure. But then again if the device is being hidden I should get a connection refused exception.</p> <p>Any help is much appreciated.</p> <p>P.S. I'm unable to post code at the moment and even if I could it's a couple thousand lines of code for the whole process.</p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload