Can access my web app only by localhost

K

kantor11

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
 
D

Dundonald

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.
 
G

Gordon Beaton

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

--
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,432
Messages
2,571,682
Members
48,796
Latest member
Greg L.

Latest Threads

Top