1. Install peanut shell dynamic domain name 6.0. After installation, a second-level domain name will be automatically assigned to you. Then you can go to the peanut shell website to apply for other free second-level domain names. For details, see:
2. Check the working status of domain name resolution: After the peanut shell is installed on the local machine, double-click the free second-level domain name to appear, if the second-level domain name of the peanut shell is resolved to the local Internet IP Address:
3. Deploy the site
Deploy the site in IIS, set the port to the default port 80, and then set the default document. After that, you can access the site through the local internal and external IP addresses or localhost to access the site normally. For example:
4. Set vro
This is the most important step. Take the d_link router as an example:
4.1 set advanced port forwarding rules: add the internal and external IP addresses of the Local Machine and port 80, for example:
4.2 set DMZ settings, add the IP address of the local machine, and enable it, for example:
4.3 set the Dynamic DNS of the peanut shell and enter the account and password to save it, as shown in:
5. Use a second-level domain name to access the site. If the access failsWindows Firewall problems or file permissions problems.
Allow port 80 or the World Wide Web Service (HTTP) in the firewall. For website directory access permissions, set the corresponding operation permissions of the everyone or Internet Guest account..
The settings of the windwo7 firewall are as follows:
The following describes how to set the tp_link router:
1. Set the virtual server in the forwarding rule:
2. Start DMZ in the forwarding rule: