Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Java EE app not working when accessed with the IP address

 
Ransika deSilva
Ranch Hand
Posts: 524
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
Ulf Dittmer
Rancher
Posts: 42967
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Ransika deSilva
Ranch Hand
Posts: 524
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic