File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Tomcat and the fly likes  Tomcat not accessed on the another machine Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Java Interview Guide this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Products » Tomcat
Bookmark " Tomcat not accessed on the another machine" Watch " Tomcat not accessed on the another machine" New topic

Tomcat not accessed on the another machine

Niranjan Bathula

Joined: Oct 11, 2013
Posts: 4

this is niranjan

i had a stack up with the tomcat issue like

actually i had application running over tomcat
the url is like localhost:8084\app , it is accessible on the local machine
but it is not accessed on the another machine. with same url or with ip .

thank you

William Brogden
Author and all-around good cowpoke

Joined: Mar 22, 2000
Posts: 13037
Using "localhost" only works on the machine the server runs on - thats what it means. Other machines on the network will have to use the network address of the machine the server runs on.

Krishnam Ch

Joined: Mar 06, 2014
Posts: 6
If other machine in same LAN/Network then using url with IP address (IPAddress:8084\app) will work.If you are in same LAN but not able to access url with Ip then there might be some issue in network and you should contact your network/It administrator. If you want to access Url from some other machine (wchich is not in same Lan) then you should host your website/application
Tim Holloway
Saloon Keeper

Joined: Jun 25, 2001
Posts: 17423

The URL "localhost:8084\app" is invalid. The use of a backslash is a convention of Windows filesystem paths. URLs are neither Windows nor are they filesystem paths.

Beyond that, as William said, "localhost" is the address of whatever machine you are directly attached, so if you want to communicate with a different machine, it must have at least 1 external IP address, which can be used directly or by looking up a domain hostname in a resolver such as DNS or a "hosts" file. And, of course, open filewall for port 8084 so that the attempt isn't blocked.

An IDE is no substitute for an Intelligent Developer.
I agree. Here's the link:
subject: Tomcat not accessed on the another machine
It's not a secret anymore!