CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 3 of 3
  1. #1
    Join Date
    Aug 1999
    Posts
    28

    localhost problem?

    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.



  2. #2
    Join Date
    Sep 1999
    Location
    Dubai, UAE
    Posts
    38

    Re: localhost problem?

    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


  3. #3
    Join Date
    Aug 1999
    Posts
    28

    Re: localhost problem?

    hmmm....
    thanks, i will try it.
    oren.


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured