First thing to do is create an account on one of dynamic DNS provider, I personally use NOIP because NOIP provide free user account for the basic use (another vendor require payment at front to start the service). So after you register, and then you can create a host. Fill the hostname that you want. I need this DNS to make public can access my web that hosted in my own computer, so i choose the type as DNS host (A). You can choose another type depends on your needs. After that, fill the public IP that assigned to you by the ISP (you can use whatsmyip to detect your IP if you are not sure). Thats enough for now, you can simply click “add host” button.
After that, let’s move to your router, there are something that you need to there to make the DDNS system can work properly. In this tutorial I use TP-link TL-MR3420 wireless router, I think the main idea is the same for another type of router, it will be slightly different with the implementation. If you get the concept, it won’t be a big deal.
Start with find the DDNS configuration menu, and then select the provider that enlisted there, I choose NOIP because I use that. Then input your username and password that you have created before. After that input the hostname that you created after register. The last thing is thick enable DDNS box and click “login button” if everything is going well, your router already connected with the system. It’s that enough? not yet, we must do something else first at router before the system can work.
To make public can access your system that lies on the router private network, you should add a forwarding rule in the router. Define the service port (E.G: 80 if you want to make access for webserver). Then define the computer IP address. If you still use pure DHCP, please set your computer IP in DHCP address reservation so the IP will never change. After that save the setting and your job in the router is finished.
The final part of the configuration is on your computer. Please turn on your webserver (if you want to make your web accessible to public). If you use windows, please make sure you add a rule in your firewall to enable access from public to your port 80. If everything going well, then you can try access the hostname that you created, and voila! it will directed into your private webserver, so right now everyone in this world can access your website that hosted in your computer. But please be aware of the security threat, once you go public, it means everyone not only just can access your website or services but also maybe do something bad to your computer.