我已尝试为 Tomcat 设置入站规则 8080 端口
允许“Java Platform SE”中所有规则的所有连接
允许应用程序通信抛出 Windows Defender 防火墙“Commons Daemon Service Runner”
设置 server.xml 文件
<Connector port="8080" protocol="HTTP/1.1"
connectionTimeout="20000"
redirectPort="8443"
URIEncoding="UTF-8"
useIPVHosts="true"
address="0.0.0.0" />
和
<Valve className="org.apache.catalina.valves.AccessLogValve" directory="logs"
prefix="localhost_access_log" suffix=".txt"
pattern="%h %l %u %t "%r" %s %b"
resolveHosts="true" />
但是,我只能在我的电脑上通过 http://localhost:8080 访问我的 tomcat 项目
即使在使用相同 Wifi 网络的计算机或手机中,我也无法使用 http://192.168.1.123:8080/ 访问我的项目
如果我需要设置其他任何东西以使其正常工作,请帮助我。