If your local IIS service is configured (refer to my previous blog) and you need to remotely access the IIS server,
We recommend that you use http://blog.163.com/yuer_d/blog/static/7676115220112192535772/ArticleWrite details.
If it is too troublesome, please refer to my simple description:
That is, if an external host wants to access your host, it needs to set a protection wall to enable a port for your IIS server. In this way, other hosts can access the service.
The process is as follows:
Control Panel-Windows Firewall-Advanced Settings-Inbound rules. Then select "new rule" in the right column ". Select "Port" and click "Next. Select "TCP", specify "specific port" (for example, 1234), and click "Next. Select "allow connection" and click "Next. Select "domain, private, and public" (you can select this option based on your actual situation) and click Next. Add the name and description by yourself.
After the preceding configurationProgram.However, you need to change the server name of the connection string of the web. config (if it is an Asp.net project) file to the IP address format. Then, remotely try to use http: // ip: Port/to access the program.
If you are prompted that you cannot connect to the database, it is likely that your local database does not allow access using TCP/IP.. The settings are as follows: SQL Server Configuration Manager-SQL SERVER network configuration-. Select MSSQLServer to enable TCP/IP. Restart SQL Server. Then, remotely try to use http: // ip: Port/to access the program.