File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
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 Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Products » Tomcat
Bookmark " Tomcat not accessed on the another machine" Watch " Tomcat not accessed on the another machine" New topic
Author

Tomcat not accessed on the another machine

Niranjan Bathula
Greenhorn

Joined: Oct 11, 2013
Posts: 4
hi

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
Rancher

Joined: Mar 22, 2000
Posts: 12761
    
    5
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.

Bill
Krishnam Ch
Greenhorn

Joined: Mar 06, 2014
Posts: 5
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: 15959
    
  19

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.


Customer surveys are for companies who didn't pay proper attention to begin with.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Tomcat not accessed on the another machine
 
Similar Threads
Calling applet in a browser
about tomcat
tomcat clustring
start tomcat other computer
When to not use EJB