aspose file tools*
The moose likes Tomcat and the fly likes Change Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Products » Tomcat
Bookmark "Change "localhost" to an ip-address" Watch "Change "localhost" to an ip-address" New topic
Author

Change "localhost" to an ip-address

Pardito Pawns
Greenhorn

Joined: Jun 22, 2010
Posts: 1
When i enter to

http://localhost:8080/index.jsp

everything works like a charm

but when i do the same with my network ip (192.168.1.10)

http://192.168.1.10:8080/index.jsp

i can see the page but i have no servlet functionality i get an "access denied"

how can i make my server works with 192.168.1.10 instead of "localhost", what do i need to change ?
Ben Souther
Sheriff

Joined: Dec 11, 2004
Posts: 13410

When you say "I can see the page" what page do you mean, a page that you wrote?
What servlet functionality isn't working?

Taking a stab in the dark: Do you have any URLs in your page with "http://localhost:8080...." in them?


Java API J2EE API Servlet Spec JSP Spec How to ask a question... Simple Servlet Examples jsonf
 
Don't get me started about those stupid light bulbs.
 
subject: Change "localhost" to an ip-address