How to set up a router on the external network to access the local IIS site

  
        First, you need to know the IP address of your router, open it in the start menu, or press the shortcut key win+r
Enter cmd, press the Enter key to open the command window
Enter ipconfig in the command window, press Enter key, you can see the default gateway ip, record this ip
Copy ip to the browser address bar, press the return home to open the router, you may encounter the login window, the default username is Admin, password is admin, note that different routers have different usernames and passwords
Click [Forwarding Rules] [Virtual Server] in the navigation bar, in the virtual server panel, click [Add New Entry] on the right to open the new one. The dialog box of the entry
Fill in the service port number. Generally, we use 80. This port number is the same as the iis setting. The IP address is the IP address of your computer, which is the ipv4 just found in the command window. Address; the agreement is generally to use tcp, if you are a rookie, do not know what agreement, directly select all A; the state must be set to take effect. Save Settings.
Switch to the dmz host settings option panel, set the dmz status to enabled, the IP address fill in the IP address of your computer, the above ipv4 address is! Save the settings, complete the task!!

Copyright © Windows knowledge All Rights Reserved