my dog learned polymorphism*
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 Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Mobile » Android
Bookmark "connect to "IP" timed out" Watch "connect to "IP" timed out" New topic

connect to "IP" timed out

Vassili Vladimir
Ranch Hand

Joined: Mar 08, 2007
Posts: 1585

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

It works fine with the android localhost "" 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.....
I agree. Here's the link:
subject: connect to "IP" timed out
Similar Threads
problem running example in mikalai notes
JMS reliability
Locating Remote Session Bean Using JNDI--JNDI-Root Error Socket Timeout Jboss.5.1.GA
JDBC Connection problem
Help required for JMS on Jboss server