Access Tomcat and windows8ipv4 through an IPv4 address in Windows 8
Recently, Android is being developed. The mobile client needs to access the Web application service started on the computer through an IPv4 address.
In Windows 7, you do not need to set any settings. localhost, 127.0.0.1, or 192.168.0.100 can be accessed, but in Windows 8, if you do not set it, you cannot access it through an IPv4 address.
You need to perform the following steps:
1. Choose Control Panel> Management Tools> Advanced Security Windows Firewall.
2. In the left pane of Windows Firewall for Advanced Security, select "inbound rules" and select "new rule" in the right pane ":
3. In the displayed window, select "Port" and click "Next ]:
4. select TCP and a specific local port, enter the port number to be opened (enter 8080 here), and click [next ]:
5. Select "allow connection" and click "Next ]:
6. Select all options and click [next ]:
7. Enter the name (enter Tomcat here) and click "finish ].
8. Make sure that the rule is Enabled:
After the above settings, you can use your IP address to access your website on other computers on the same lan. I hope this article will be helpful to friends who have the same troubles.
Refer:
Http://blog.csdn.net/gykthh/article/details/24404459