This week's book giveaway is in the OCAJP 8 forum.
We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line!
See this thread 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 OCA Java SE 8 Programmer I Study Guide this week in the OCAJP 8 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: 632

It may be because you are behind proxy.


Life is easy because we write the source code.....
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: connect to "IP" timed out
 
It's not a secret anymore!