It's not a secret anymore!*
The moose likes Servlets and the fly likes IP Address would not open in Browser!!!! Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Servlets
Bookmark "IP Address would not open in Browser!!!!" Watch "IP Address would not open in Browser!!!!" New topic
Author

IP Address would not open in Browser!!!!

sam patel
Ranch Hand

Joined: Jun 13, 2002
Posts: 103
I have an applet-servlet communication.
I have setup everything...
When i open my applet in browser using
http://localhost/scanapp
It works fine...
i get the applet on the screen and then i am opening another frame from that applet's actionperform...
but when i use this in the browser...

http://myIPaddress/scanapp
It will show the applet but it cannot perform any actionperform.
When i click on the button it does nothing...
As soon as i change it to localhost it works...
Can someone tell me what am i doing wrong...
Thanks in advance...
William Brogden
Author and all-around good cowpoke
Rancher

Joined: Mar 22, 2000
Posts: 12769
    
    5
Do you get any message in the Java Console or the log? This might be some sort of security thing where localhost and myIPaddress are not considered to be the same server.
Bill
sam patel
Ranch Hand

Joined: Jun 13, 2002
Posts: 103
Originally posted by William Brogden:
Do you get any message in the Java Console or the log? This might be some sort of security thing where localhost and myIPaddress are not considered to be the same server.
Bill

Thank you for your reply...
It does not log anything.
http://localhost/scanapp works...
but this would not work...
http://10.120.120.42/scanapp
How can i solve this problem...
Again Thanks..
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: IP Address would not open in Browser!!!!