aspose file tools*
The moose likes Sockets and Internet Protocols and the fly likes java.net.ConnectException: Connection timed out: connect Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Java 8 in Action this week in the Java 8 forum!
JavaRanch » Java Forums » Java » Sockets and Internet Protocols
Bookmark "java.net.ConnectException: Connection timed out: connect" Watch "java.net.ConnectException: Connection timed out: connect" New topic
Author

java.net.ConnectException: Connection timed out: connect

Joy Mowar
Greenhorn

Joined: Nov 28, 2007
Posts: 1
Hi,
I am creating a Scoket on a port (9830).
The program creates the socket successfully.

Now I use an applet (in browser) to connect to this socket.

I am getting the following error:

---------------------------------------------------------------------------
Connecting to 75.126.176.224:9830...
java.net.ConnectException: Connection timed out: connect
at java.net.PlainSocketImpl.socketConnect(Native Method)
at java.net.PlainSocketImpl.doConnect(Unknown Source)
at java.net.PlainSocketImpl.connectToAddress(Unknown Source)
at java.net.PlainSocketImpl.connect(Unknown Source)
at java.net.SocksSocketImpl.connect(Unknown Source)
at java.net.Socket.connect(Unknown Source)
at java.net.Socket.connect(Unknown Source)
at java.net.Socket.<init>(Unknown Source)
at java.net.Socket.<init>(Unknown Source)
at ChatApplet.run(ChatApplet.java:65)
at java.lang.Thread.run(Unknown Source)

---------------------------------------------------------------------------

The application is hosted on a linux environment.

The same code works fine on my PC.

Could anyone let me know what could be the reason for this error.

Thanks & Regards,
Joy.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: java.net.ConnectException: Connection timed out: connect
 
Similar Threads
I need help on applet crashing
javax.naming.CommunicationException
About LDAP and JNDI
Active Directory Issue
please help ..... error while running program using eclipse