File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
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


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
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: 39547
    
  27
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 - updated with new look and Ping home screen widget
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
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Java EE app not working when accessed with the IP address
 
Similar Threads
issue with javascript and tiles.
Unable to access my webapp from other machines
JForum is not working with the IP address
Localhost Vs IP Address
Losing session attribute