Click to See Complete Forum and Search --> : localhost problem?


Oren Y.
October 13th, 1999, 02:38 AM
hi,
i had wrote a client - server application using JDK1.2.2.
the server is a java application, the client is a java applet and i am using
TCP/IP. both are running currently at my computer - "localhost".
when i am using Sun's AppletViewer it works just fine, but when i tried using
Internet Explorer 5 - it fails (got stacked) on something concerns
the "localhost" (not finding or can't access - unfortunately it is not in front
of me now).
i had tried reducing the security level of all the so called - zones, but - nada.
any suggestion?
oren.

R.Saravanan
October 13th, 1999, 08:26 AM
If ur sure that u need to hardcode the host name in ur applet, try using "127.0.0.1" instead of "localhost" when u r creating the Socket.

Recommended is to use getCodeBase().getHost()



Will work wherever u put up ur applet.

Rgds,

R. Saravanan

Oren Y.
October 13th, 1999, 09:11 AM
hmmm....
thanks, i will try it.
oren.