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 appl
this works fine simply write http://your_ipaddress:8080(tomcat server port)/project name
and make sure you are connected to same network and project is deployed on tomcat.
You must write your machine's IP instead of using "localhost"
if your ip were 192.122.11.22 you have to write http://192.122.11.22:8080/proyectname (if dont, then look your firewall)
`Step 1: Go to directory where tomcat is installed and look for server.xml file.Usually the path is
C:\Program Files\Apache Software Foundation\Tomcat 9.0\conf\server.xml
Open it with editor and look for connector block.It will be like
<Connector port="8080" protocol="HTTP/1.1"
connectionTimeout="20000"
redirectPort="8443"/>
Add address="0.0.0.0" to it
<Connector port="8080" protocol="HTTP/1.1"
connectionTimeout="20000"
redirectPort="8443"
address="0.0.0.0" />
save the file.
step 2: Go to the firewall and network protection setting of the pc and turn off the public network firewall.
step 3: Start the tomcat server.Then use the local ip address of pc and port 8080 (used by tomcat server as default unless you have changed it) form other device to connect with the tomcat server on the pc.
eg - http://192.168.8.137:8080/ (replace 192.168.8.137 with your pc's local ip address)