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

前端 未结 10 1816
滥情空心
滥情空心 2020-12-31 01:30

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

10条回答
  •  自闭症患者
    2020-12-31 02:09

    Step 1: Add a firewall exception to inbound connections to the port that you use for your hosts (the Host tags in CATALINA_HOME(Tomcat dir)/conf/server.xml).

    Step 2: At least in Windows 10, allow Tomcat to communicate through the firewall. One way would be Control Panel -> System and Security -> Windows Firewall -> "Allow an app or feature through Windows Firewall" -> "Change settings" -> Enable Private and Public for "Commons Daemon Service Runner" (if not present: "Allow another app..." -> Chose tomcat#.exe in Tomcat bin directory, where # will be the tomcat version number)

    Step 3: Add a firewall exception for javaw. In Windows 10, that is the steps above up to "Change settings", followed by: Find Java(TM) Platform SE binary with a path to javaw (add as above if not present) -> Enable Private and Public for it.

    Let me know if that does not work. :)

提交回复
热议问题