How to access Tomcat from another computer?

前端 未结 6 1011
小鲜肉
小鲜肉 2020-12-31 06:35

I have an JSP website which I want to share with my friends. We all are using a same internet resource. We have a common static IP:49.204.14.98(My Public IP). We are almost

6条回答
  •  星月不相逢
    2020-12-31 07:13

    If you are using Windows 10, allow Tomcat to communicate through the firewall.

    1. 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)

    2. 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.

提交回复
热议问题