DOCMENTATION NOTE: This page has been deprecated. The new page can be found here: /remote-access/getting-started-with-remote-access/

Dynamic DNS solves a fundamental challenge of connecting to remote devices via the Internet. IP addresses are inherently tough to remember, and subject to change at the discretion of your Internet Service Provider (ISP) - Dynamic DNS uses an Update Client to stay apprised of these changes, which in turn keeps that hostname up-to-date with the latest IP address.

Terminology

The following terms will be used throughout this article - please familiarize yourself with them:

Device

This may be a computer, a DVR, a web-cam, anything on your network that you can access from your network, but want to be able to access from outside it.

LAN

Your network

WAN

Your connection to your ISP's network

Before You Begin

Check the WAN IP address of your router - if it looks like 10.x.x.x, 192.168.x.x or 172.16.x.x to 172.31.x.x, then you have what is known as an RFC-1918 IP address (often referred to as private addresses). You will need to contact your ISP to find out how to get a public IP address, or have traffic routed to you.

Until you have a public IP address, you won't be able to get anything else working.

The only way to be certain of the WAN IP address is to look at your ISP facing device, your router, or if you have one your ADSL/VDSL modem. You can use one of the many web pages that will tell you what your WAN IP address appears to be. Be warned however that if you are behind a proxy server, or you have one of the RFC-1918 IP addresses referred to above, they will report the wrong IP address and you will waste time trying to get this working.

Summary

There are typically six (6) steps in getting Dynamic DNS working:

  1. Create your Dynamic DNS hostname or Standard DNS host.
  2. If your WAN has a dynamic IP address (the address is subject to change at the discretion of the ISP), configure a device on your network (that is always on, such as your router) to update your hostname with your IP address. Dyn provides software-based updaters for Mac, Windows and Linux which provide a friendly user interface for sending these updates.
  3. Configure the device you want to forward traffic to with either a static IP address, or a static DHCP lease. This ensures that the time spent configuring the router (in a moment) isn't wasted if/when the IP on your device changes.
  4. Test the device from your LAN.
  5. Configure your router to forward traffic to your device. How you do this depends on your router, and what you want to access. Your router's documentation should detail how to set up this port forwarding functionality.

    Dyn Support is unable to help configure manufacturer-specific port forwarding functionality. If you run into issues whilst configuring port forwarding, please consult your router manufacturer's support team.

  6. Test your setup from outside your LAN.

Step 1 - Create Your Hostname

Create your Dynamic DNS hostname or Standard DNS hostname (Standard DNS is for use with your own domain). If asked for an IP address when creating the hostname use the auto-detected value or enter something like 192.0.2.1 - the IP address will be replaced by your update client later.

Step 2 - Configure Updating

If you have a dynamic IP address from your ISP, you have to make one basic decision - are you going to do your updating from your router or other device like DVR or camera, or from a computer? Running it from a computer (Windows, Linux or other) can mean that you get better logging and more control, but may result in more network traffic and greater delays in updating changed IP addresses (10 minutes rather than 1 minute). Using a non-approved router or device may mean that it is harder to get it working, or that you get your hostname blocked for unnecessarily updating your IP address information too often. If you are running your updater on Linux/*BSD or any other non-Windows platform it is generally best to install from a package (whether that be an RPM, a DEB or from ports/portage). That way you should get the required startup scripts and a sample configuration file.

Step 3 - Configuring The Device

You need to ensure that the device you forward traffic to has a static (aka fixed) IP address. If you don't do this then at some point the IP could change, and you'll be wondering why it's suddenly broken. There are 2 ways of doing this.

  1. On the device itself - how you do this depends on the device or underlying operating system.
  2. On the DHCP server (usually on the router) - many offer the option of assigning a fixed IP address to any given device (usually by MAC address).

If you go with option (1) make sure that you use an IP address outside of the range your DHCP server is allocating from. If you don't do this you'll end up with a duplicate IP on your network, and things won't work. In the rest of this document I'll use 192.168.0.1 to refer to this IP address.

Step 4 - Initial Testing

At this point you should be able to connect to the device, using the chosen IP address, from another computer on the LAN (it is important not to test from the device running the service). Until you get this to work there's no point in going further.

Step 5a - Before Configuring the Router

Your first step here is identifying what port(s) you need to forward. If you access the device with a web browser and a URL that looks like http://192.168.0.1/ then you'll want to forward port 80/TCP. If it looks like http://192.168.0.1:3128/ then you'll want to forward the number after the colon (:) - in this case port 3128/TCP. EMail (SMTP) uses 25/TCP for mail server to mail server communication. Other ports are used for other purposes: 587/TCP is a port for client to server (SMTP), 110/TCP for POP3, 143/TCP for IMAP. Other ports are also used for SSL versions of those services, though most modern software can use TLS instead. Other ports can usually be found easily by visiting Google, or consulting the appropriate guide (more in a moment). Now, before you configure your port forwarding there may be a problem. Some routers will not actually forward traffic on the same port as their administrative interface uses, even though they'll happily let you set that up. If this applies to your router it'll be easy to spot - instead of getting the device you expected to see you'll get your router's admin page (or a login prompt for the router). At this point you have 3 choices:

  1. If supported, move the admin page to a different port.
  2. Forward a different port (and optionally use WebHop so that people don't have to add the port to the URL).
  3. Try a firmware upgrade, or alternative firmware (DD-WRT, OpenWRT etc) where supported.

Step 5b - Configuring the Router to Forward Traffic

Now it's time to configure the port forwarding. The manual that came with the router will detail how to do this, but if you've lost it (or don't want to look for it) there's a handy website with guides, and they even provide a program called PFConfig to do it for you. All you have to do is pick your router, pick the program you want to forward traffic to (or the protocol) and follow the instructions - complete with pictures.

Step 6 - Testing

You now need to test from outside your LAN with the Remote Access hostname. The reason for testing from outside your LAN is that not all routers support loopback connections (NAT reflection). There are several ways to test this:

  1. Via a suitable online page. For web servers (or anything which uses a browser interface) there are various (limited functionality) online browsers (such as TCP Query from CentralOps). For email servers you can use the MX Toolbox service, which allows you to run some basic checks.
  2. From an external PC, mobile device, online proxy or a VPN to a remote location. This will give you a proper test, allowing you to see what others would see. If you are using a computer ensure that you do your testing from another home user connection. Many public connections and work networks block ports and will give you an invalid result.
  3. The Open Port Tool allows you to check if port forwarding on your router is correctly configured, and your application is listening on the related port(s).