GeeCON Prague 2014*
The moose likes Beginning Java and the fly likes Java EE app not working when accessed with the IP address Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Java » Beginning Java
Bookmark "Java EE app not working when accessed with the IP address" Watch "Java EE app not working when accessed with the IP address" New topic
Author

Java EE app not working when accessed with the IP address

Ransika deSilva
Ranch Hand

Joined: Feb 18, 2003
Posts: 524
Hi all,
I bought a dedicated server and deployed the Java Enterprise application which I created with netbeans. Through the servers web browser if I access the Java EE app, http://localhost.... like wise, it perfectly works. But when I try to access the site from a remote web browser with the IP address (static) it doesn't work. Any idea why? I am very new to this deployment scenarios. Thanking you and regards


SCJP 1.4, SCMAD 1.0<br />SCWCD, SCBCD (in progress)
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 42035
    
  64
What does "it doesn't work" mean? What exactly is or is not happening? Are there any exceptions in the log files?

Some servers (e.g. Tomcat) by default only allow access from localhost; you need to configure it to access it from other IPs.


Ping & DNS - my free Android networking tools app
Ransika deSilva
Ranch Hand

Joined: Feb 18, 2003
Posts: 524
Hi,

The problem is when I try to access the application with the IP address from a different machine (not the server), I get a "Connection has time out". I have ADSL line and when I access the administrator console with the IP address and port 4848 from a different (not the server) machine, the page gets loaded. I am clueless to give you more details. But appreciate if you can help me out on this.

Regards
 
GeeCON Prague 2014
 
subject: Java EE app not working when accessed with the IP address