Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How can I browse my Tomcat localhost from another computer on the network?

Tags:

I'm an IIS guy and know its as simple as just using the http://[computername]/path to webapp.. however, I can't seem to figure out how to make this possible for a JSP application I'm writing that runs under Tomcat. Is there a configuration setting I need to set somewhere?

like image 745
EvilSyn Avatar asked Sep 25 '08 16:09

EvilSyn


People also ask

How do I make Tomcat accessible from outside?

To access the server, use its external IP address (found on the hands-on lab overview page) in the URL bar of a web browser, then append :8080 to it. Test to ensure you are unable to access the Host Manager App on the Tomcat GUI. Note: Tomcat is installed under /usr/local/tomcat9 .

How do I access Tomcat locally?

Access the Apache Tomcat console by browsing to http://localhost:8080/ (if installed as a non-root user) or http://localhost/ (if installed as the root user).


Video Answer


2 Answers

You need to use the Port of Tomcat which is by default 8080. So you might want to access you localhost on machine A from machine B as http://A:8080/YourProject And Remember Unlike IIS , it is case sensitive.

like image 169
Gripsoft Avatar answered Sep 28 '22 02:09

Gripsoft


Have you created an exception in your firewall?

Assuming that Tomcat is running on port 8080 and this is a Windows XP machine, the the firewall will block that port (not the case on Windows Server 2003).

The firewall can be configured by: choosing the Windows Firewall from the Control Panel, then click on Exceptions -> Add Port and enter name and number: Tomcat, 8080 and leave transport protocol as TCP

like image 35
Airsource Ltd Avatar answered Sep 28 '22 03:09

Airsource Ltd