Reproduced from the following URL: http://hi.baidu.com/ahong1288/blog/item/80af3b12bd376a59f919b869.html
You probably have a home network, which has a fixed broadband connection that allows you to access the external network world for seven days and 24 hours. However, if you want to access the home network from the public Internet, what should you do? If you want to pay 2 to 4 times more for your bandwidth account, you can get a fixed IP address (an IP address that will never change ), it is possible to achieve this, but this method is not suitable for everyone. Fortunately, we have a free and simple solution to solve this problem by using the ddns (dynamic domain name resolution) service of dyndns.com. This article will show you how to create a free account, configure your vro to update your dynamic IP address to the ddns server, and open the network port necessary to access the home network from the Internet.
What you can do with Dynamic DNS:
1. Use Remote Desktop or VNC to connect to your own PC anywhere on the Internet.In general, this does not consume much bandwidth, But if you enable remote desktop animation and remotely connect to play sound or video files, it is hard to say.
2. Set up personal websites on your PC. This is subject to bandwidth restrictions, because most broadband service providers do not provide high upload capabilities. The maximum bandwidth connection speed of the vast majority is between 128 and kbps, although there are occasional lucky people who can obtain the upload capability of up to 1 Mbps.
3. Set up your own ftp server. If your FTP site requires a user name and password, it may be dangerous to do so because these user names and passwords are directly sent in plaintext. Anyone can sniff them and break into your FTP server. If your username and password are still used elsewhere, attackers can also break into that location.
4. Set up your own game server. This is also limited by bandwidth. Generally, each external connection requires about 40 kbps. If your upload capability is only kbps, the maximum number of players is 8. Do not try to add more players.
5. provide your own video services, such as slingbox. Note that it may use up your upload bandwidth because videos consume a lot of bandwidth.
In short, once you have dynamic domain name resolution, You can do almost endless things, but you must pay attention that responsibility and ability are always together. Because you are now fully open to the public internet, you must do something to protect your resources so as not to be poisoned by hackers.
Create your own dyndns.com account
at the beginning, you must create your own dyndns account, go to the dyndns website page ( http://www.dyndns.com/ ), then click Create account) "( https://www.dyndns.com/account/create.html ). Then, you need to fill in some personal information and provide a valid email address for confirmation, and select the user name and password. In the "How do you know us (how did you hear about us)" column, remember to select "Other (heard elsewhere)" and paste the URL of this article. Agree to all the conditions and click "creat account )". Once you receive a confirmation email, you need to click the confirmation connection provided in the email within 48 hours to activate your account. Once the account is activated, you can log on.
After logging in, remember to click "my services" in the upper-left corner of the dyndns website. Then, click "add host services (add host service )"(Https://www.dyndns.com/account/services/hosts/add.html). Then, click "Add dynamic DNS host (Add dynamic domain name host )"(Https://www.dyndns.com/account/services/hosts/dyndns/add.html), And then you can see the webpage table shown in A, you can select one from a list of available domain names to use. If you are a Linux supporter, you may want to use a domain name like "homelinux.org. If you are a game enthusiast and want to build your own game servers, you may like game-host.org ". There are many options to choose from, but not every host name is available, because they may already be used.
Figure
Enter the Host Name and click "add host" in the table. You do not need to enter an IP address, because the IP address should be automatically filled in, and updating the IP address is the work of the router. If not, click "use auto detected IP address 222.216.107. If you select "homeip.net" as the domain name and select a unique prefix before the host name, such as "myuniquehostname ", then your new ddns name on the public Internet will be "myuniquehostname.homeip.net ". Anyone accessing "myuniquehostname.homeip.net" will enter the IP address in your home, no matter how it changes.
After the dynamic domain name host is successfully added, a message is displayed.: Hostname myuniquehostname.homeip.net created.
Your cart contains free services only. You will not be asked for credit card information.
(Your shopping cart only includes free services. You will not be asked to provide credit card information .)
Click the "Payment" button in the lower part of the page. -- don't worry, it only requires you to pay 0 yuan, which is equivalent to the completionProgram.
Once you have confirmed the contents of your cart your services will be instantly activated.
(Once you have confirmed the content, your shopping cart and your service will be started immediately .)
Click"Activate services", The dynamic domain name resolution service will start. Don't worry! Very stable.
Forwarding port to internal network
Once your ddns account is created, you need to configure your vro to use your IP address to update the server. You will need to verify whether your router supports dyndns. I will use a relatively cheap Linksys wrt54gs router for demonstration, because it is confirmed that dyndns.org can be updated completely.
Note: there is also a substitute for vrod- based ddns updates, that is, a Windows client provided by dyndns.com (Http://www.dyndns.com/support/clients/). I personally do not like to run additional software on my computer, so I personally prefer to use a hardware client to make it complete on the router.
Figure B shows the ddns configuration page
This is under ddns on the main settings page. Select dyndns.org as the ddns service, enter your username on dynns.com, enter the password, and enter the complete host name, such as "myuniquehostname.homeip.net ". Click Save settings. After all this is done, the page will be refreshed again, and then in the status bar, it will tell you that the ddns has been successfully updated. This means that "myuniquehostname.homeip.net" is now accessible from the Internet.
Figure B
Once your fully qualified ddns name is fully visible on the internet, you need to open the corresponding port required to access the program. In Figure C, in the "applications gaming" area, under "port range forward (forwarding port range)", you need to add some ports. The application column is just a name used to indicate the port you will open. In my instance, I opened TCP ports 3389 and 3390 for the terminal (terminal) service .???? Any access from port 3389 of the public Internet (this port is used to access remote desktop or terminal services) will be routed to the internal host 192.168.1.11. Port 3390 is a non-standard port. I chose it for the second Remote Desktop host, and it will be re-routed to the internal host 192.168.1.12. Once you have completed these port-forwarding portals, click "Save settings" to save your modifications. Note that you should use the static IP address of the internal host. Any changes to the DHCP address will interrupt forwarding.
Figure C
Modify Windows Remote Desktop Port
The default port for Windows Remote Desktop is TCP 3389, but if you only use this port, you can only have one machine to use it, because your intranet has only one IP address. If you want to allow remote desktop access to the second PC on the Intranet, You need to configure a non-standard port. You need to use the Regedit command to edit the following key values in the registry:
Hkey_local_machinesystemcurrentcontrolsetcontrolterminal serverwinstationsrdp-TCP
Figure D shows the execution display in Vista, and the display in Windows XP should be similar to it. To set the second key value for the second Remote Desktop (the IP address is 192.168.1.12), simply change the default 3389 value to 3390. You can continue to add ports in sequence, if you have other hosts that need to be open to the Internet.
Figure D
Don't forget security
This technology is indeed very powerful and useful, but while providing more convenience, it is more responsibility. Whenever you open a port to the outside, this service-whether it is a web server or a Remote Desktop Server-if you ignore its security, it may be a backdoor used to attack the internal network. Opening a port to the Internet means that anyone on this planet can access your services. Remember this. It has nothing to do with the operating system or platform you are using. If you find that you have been attacked by hackers on the Internet, the most important thing is that you can follow the best steps to lock your services. This article provides an example of using remote desktop anywhere on the Internet, so it is very important for you to configure Remote Desktop Security.