Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / General / November 2007

Tip: Looking for answers? Try searching our database.

Can access my web app only by localhost

Thread view: 
kantor11@gmail.com - 13 Nov 2007 11:23 GMT
Hi all,
i wrote a web app and diployed it on my  tomcat server, my problem is
that i can access my app only wheni i use "localhost:8090\appName" and
not when i use "myIP:8090\appName" can someone please tell me why
Dundonald - 13 Nov 2007 11:32 GMT
On 13 Nov, 11:23, kanto...@gmail.com wrote:
> Hi all,
> i wrote a web app and diployed it on my  tomcat server, my problem is
> that i can access my app only wheni i use "localhost:8090\appName" and
> not when i use "myIP:8090\appName" can someone please tell me why

You're using the wrong IP guaranteed.

Local host usually translates to 127.0.0.1.  Try that.
Gordon Beaton - 13 Nov 2007 11:40 GMT
> i wrote a web app and diployed it on my tomcat server, my problem is
> that i can access my app only wheni i use "localhost:8090\appName"
> and not when i use "myIP:8090\appName" can someone please tell me
> why

Tell Tomcat to listen on all interfaces, not just localhost. Typically
that means that you should only specify the port number and no
hostname or host address.

Additionally, make sure that your host is correctly configured so that
localhost maps to the local address (127.0.0.1) and any other names
your host is known by map to the corresponding external addresses.

/gordon

--


Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.