At present, many Web site developers install IIS or Apache and other Web servers, you can configure their own computer as a routing-centric intranet server. Local server in-network testing is more than enough, but some projects need to demonstrate to off-site customer acceptance, and not to put their own website on the server, then we can adopt port mapping, so that customers can access our local server in the external network (for most of the site design Soho workers). There are already a lot of software on the network to achieve this function, but I would like to say today is not dependent on any software (I do not like to install software), but instead of setting up a routed port, to reach their own computer on the local server can be accessed by the external network. What is the port mapping, the following will be introduced, in the premise of doing this port mapping, is to have a route, no routing, trouble ... you go and buy one. Our local Web server is generally Http://localhost/or behind with ports, LAN users are through the computer's intranet IP access to the Web server, for example, the IP of the Web server computer is 192.168.1.112, other users within the LAN can be https://192.168.1.112 access to our Web server, but for extranet users, it is not possible to access our Web server by accessing the https://192.168.1.112 IP. Then you need one. For extranet users, your Web server is the only IP address, and the only IP address that works is your route. I'll take the Tp-link route as an example of how port mapping operates. First, we enter the router to view the IP address of our routed WAN port. WAN Port This IP (27.40.127.248) is an extranet user can uniquely identify your computer address of the routing ip, but a route is generally connected to several computers at the same time, how to let visitors find you, this needs to port mapping. Port mappings are also known as Port forwarding. The port mapping process is like your home in a Community T Building Room 112, your friend came to you, find the door of the community, do not know which floor you live? Ask the Community security, security told him your house detailed number, so that your friend very easy to find your home. This security is on the router, this process is the external network access through the port map image metaphor. Then we find its port mapping function in the Tp-link route, the port mapping is located in the "forwarding rules" inside the "virtual server" (each brand of the name of the route is not the same, please find out in detail), and then add the forwarding entries, Such as: Virtual Service 80 port forwarding under my tp-link, I have added two entries, which are 80 ports and 8080 ports forwarding to the intranet 192.168.1.112 computer, now as long as the user through 80 or 8080 of these ports access the routed IP, the route will turn the user to 192.168.1.112 the local server on which the computer resides. Port mapping In addition to the Web server can do such settings, FTP can also do similar forwarding, the default port of FTP is 21.
How to make the extranet accessible to your local Web service