jeudi 25 mars 2021

Tomcat 8.5 access from another device in Lan

I have tried to setup Inbound Rule 8080 port for Tomcat

Allow All the connection of all rule in "Java Platform SE "

Allow apps to communicate throw Windows Defender Firewall "Commons Daemon Service Runner"

Setup server.xml file

<Connector port="8080" protocol="HTTP/1.1"
               connectionTimeout="20000"
               redirectPort="8443"
               URIEncoding="UTF-8"
               useIPVHosts="true"
               address="0.0.0.0" />

And

<Valve className="org.apache.catalina.valves.AccessLogValve" directory="logs"
               prefix="localhost_access_log" suffix=".txt"
               pattern="%h %l %u %t &quot;%r&quot; %s %b" 
               resolveHosts="true" />

However, I just only can access my tomcat project by http://localhost:8080 in my computer only

I cannot access my project by using http://192.168.1.123:8080/ even in my computer or my phone by using same Wifi network

Please help me if I need to setup anything else to make it work.




Aucun commentaire:

Enregistrer un commentaire