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 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.