Forums Register Login

java.net.ConnectException: Connection timed out: connect

+Pie Number of slices to send: Send
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.
Evil is afoot. But this tiny ad is just an ad:
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com


reply
reply
This thread has been viewed 1767 times.
Similar Threads
I need help on applet crashing
please help ..... error while running program using eclipse
About LDAP and JNDI
javax.naming.CommunicationException
Active Directory Issue
More...

All times above are in ranch (not your local) time.
The current ranch time is
Mar 29, 2024 07:40:01.