Virtual Servers: Share Local Resources on the Internet
When you build up a server on the local network and want to share it on the internet, Virtual Servers can realize the service and provide it to internet users. At the same time Virtual Servers can keep the local network safe as other services are still invisible from the internet.
Virtual Servers can be used for setting up public services on your local network, such as HTTP, FTP, DNS, POP3/SMTP and Telnet. Different services use different service ports. Port 80 is used in HTTP service, port 21 in FTP service, port 25 in SMTP service and port 110 in POP3 service. Please verify the service port number before the configuration.
For example, you’ve built your own personal website on the home PC (192.168.0.100). You really hope that your friends on the internet can visit the website in some way. The PC is connected to the router with the WAN IP address 126.96.36.199.
Here we take TP-Link Router as an example.
Before you start, assign a static IP address to your PC, for example 192.168.0.100. Then follow the steps below:
- Visit http://tplinkwifi.net, and log in with your TP-Link ID or the password you set for the router.
- Go to Advanced > NAT Forwarding > Virtual Servers.
- Click Add. Click View Existing Services and select HTTP. The External Port, Internal Port and Protocol will be automatically filled in. Enter the PC’s IP address 192.168.0.100 in the Internal IP field.
- Click OK.
- It is recommended to keep the default settings of Internal Port and Protocol if you are not clear about which port and protocol to use.
- If the service you want to use is not in the Service Type, you can enter the corresponding parameters manually. You should verify the port number that the service needs.
- You can add multiple virtual server rules if you want to provide several services in a router. Please note that the External Port should not be overlapped.
Now your friends can enter http:// WAN IP (in this example: http:// 188.8.131.52) to visit your personal website.
- The WAN IP should be a public IP address. For the WAN IP is assigned dynamically by the ISP, it is recommended to apply and register a domain name for the WAN. Then users on the internet can use http:// domain name to visit the website.
- If you have changed the default External Port, you should use http:// WAN IP: External Port or http:// domain name: External Port to visit the website.