A
Ashwin Kambli
Hi all,
I am writing a simple applet to check for certain network properties.
In one of the tests, I call a webservice on my server
(SocketListener.asmx on the codebase of the applet). This webservice
opens a socket for listening on a pre-determined port and remains open
until a connection is establised or timesout (60 seconds). Once this
is done asynchronously, I open up a socket in the applet and try to
connect to the server machine on the pre-determined port#. This applet
works perfectly on my local machine (server and client both on same
machine). But when I try it from another machine on the intranet, the
applet socket throws a "Connection timed out" exception. Eventually
(after 60 seconds), the server socket too times out and sends back an
appropriate message.
Now, I copied the actual class file that tries to make the connection
to the server(PingServer.class), to the intranet machine that failed.
When I ran this class from the command prompt (java PingServer
serverip 9000), it worked perfectly.
Any ideas as to what the problem might be?
Ashwin
I am writing a simple applet to check for certain network properties.
In one of the tests, I call a webservice on my server
(SocketListener.asmx on the codebase of the applet). This webservice
opens a socket for listening on a pre-determined port and remains open
until a connection is establised or timesout (60 seconds). Once this
is done asynchronously, I open up a socket in the applet and try to
connect to the server machine on the pre-determined port#. This applet
works perfectly on my local machine (server and client both on same
machine). But when I try it from another machine on the intranet, the
applet socket throws a "Connection timed out" exception. Eventually
(after 60 seconds), the server socket too times out and sends back an
appropriate message.
Now, I copied the actual class file that tries to make the connection
to the server(PingServer.class), to the intranet machine that failed.
When I ran this class from the command prompt (java PingServer
serverip 9000), it worked perfectly.
Any ideas as to what the problem might be?
Ashwin