This tutorial will show you how to access your DIY home server in everywhere by port forwarding your router and register a free dynamic DNS service.

Deploy a diy host by router port forwarding and dynamic dns
Deploy a diy host by router port forwarding and dynamic dns

Why port forwarding

Port forwarding is a method of making a computer on your network accessible to computers on the Internet, even though you are behind a router.
It is commonly used for hosting game servers, peer to peer downloading, and voice over IP type applications. There are many other reasons you may need to forward a port, this is not an exhaustive list.

Every program on your computer that uses the internet is programmed to send its packets through specific ports. Sometimes the ports are selected arbitrarily by the programmers of the software, but other times programmers will use a more standard port depending on the functionality of the software. Here are a few examples of industry standard uses for common ports:
HTML pages: port 80
FTP file transferring: port 21
POP3 email: port 110
MSN Messenger: port 6901 and ports 6891-6900
For more information on the ports that specific programs use, please see our Port Forwarding Ports List. There you will find the ports that you need to port forward for any application including Minecraft and uTorrent.

Exameple: TP-Link Router Port Forwarding

To login to your router, open your browser and type in your router’s internal IP. The default IP address for TP-Link is 192.168.1.1 You will be prompted for a username and password. If this is your first time logging in to the router, the default username and password is admin. (You should change these upon login to keep your network secure.)
Once logged in, you will see a screen similar to this:
TP-link port forwarding

From the left hand navigation, click the following:
Forwarding > Virtual Servers > Add New
Now you are able to add the port that you wish to open. For some DVRs it is just one port, though certain ones require more ports to be open.
Example: If you wish to open port 1720. Type 1720 into the Service Port field. Enter in the Internal IP that you wish to be open on 1720 (this would be the IP address of your DVR or device). If you are unsure what the Internal IP address is, you can go back to the home page and see the default name and Internal IP addresses of the devices that are currently connected to your network.
Once you know the IP address of the device, enter it into the “IP Address” field. Now, set “Protocols” to “All” and set “Status” to “Enabled”.
Click the “Save” button and you have now successfully port forwarded that port! If you have multiple ports to forward repeat the process until completed.
Tp-link port forwarding 2
Open a browser and go to 192.168.1.1 > Login > Forwarding > Virtual Servers > Add New > Service Port (IP you wish to forward) > IP Address (Which device you wish to open) > Protocols All > Status Enable.
NOTE: If you open port 80 on your router, you will now have to login to the admin settings of the router using the following IP address: http://192.168.1.1:8080

What is dynamic DNS

Dynamic DNS (DDNS or DynDNS) is a method of automatically updating a name server in the Domain Name System (DNS), often in Not Real Time, with the active DDNS configuration of its configured hostnames, addresses or other information.

The term is used to describe two different concepts. The first is “dynamic DNS updating” which refers to systems that are used to update traditional DNS records without manual editing. These mechanisms are explained in RFC 2136, and use the TSIG mechanism to provide security. The second kind of dynamic DNS permits lightweight and immediate updates often using an update client, which do not use the RFC2136 standard for updating DNS records. These clients provide a persistent addressing method for devices that change their location, configuration or IP address frequently.

Demo with raspberry server

Updating…

https://i0.wp.com/nvtienanh.com/wp-content/uploads/2015/11/WOL.jpg?fit=640%2C427https://i0.wp.com/nvtienanh.com/wp-content/uploads/2015/11/WOL.jpg?resize=150%2C150Nguyễn Văn Tiến AnhBlogLinuxDIY host,port forwardingThis tutorial will show you how to access your DIY home server in everywhere by port forwarding your router and register a free dynamic DNS service. Why port forwarding Port forwarding is a method of making a computer on your network accessible to computers on the Internet, even though you are...Tien Anh Nguyen Van