This week's book giveaways are in the Java EE and JavaScript forums.
We're giving away four copies each of The Java EE 7 Tutorial Volume 1 or Volume 2(winners choice) and jQuery UI in Action and have the authors on-line!
See this thread and this one for details.
The moose likes Android and the fly likes connect to Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Mobile » Android
Bookmark "connect to "IP" timed out" Watch "connect to "IP" timed out" New topic
Author

connect to "IP" timed out

Vassili Vladimir
Ranch Hand

Joined: Mar 08, 2007
Posts: 1585
Hello,

I am using the following code to connect to a server:



It works fine with the android localhost "10.0.2.2" but when attempting to connect to another server (non localhost) it says connect timed out! What can be the reason?

Please advice,

Vassili ...
SCJP 5.0, SCWCD 1.4, SCJA 1.0
Pramod P Deore
Ranch Hand

Joined: Jul 15, 2008
Posts: 629

It may be because you are behind proxy.


Life is easy because we write the source code.....
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: connect to "IP" timed out