help.hdontap.com

Port Forwarding

This port forwarding tutorial is provided to help you understand what port forwarding is, why it is required, and the basics on setting up port forwarding in your router to allow remote access to webcams on your local area network (LAN) also known as your private network.

What is Port Forwarding?

Port forwarding is a method or service enabled in your router to make computers and other devices on your local area network (LAN) reachable by computers and devices on the public Internet. It is used quite often to enable remote access (Access when not on or connected to your LAN) to webcams for the purpose of remotely monitoring, controlling and streaming live video.

What are Ports?

Ports are essentially endpoints to logical connections between computers and devices on the internet. Programs and services running on your computer or webcam use specific ports for specific services. When your computer talks to a website, it talks to the server holding the website data over port 80 which is a common port for HTTP or HTML internet traffic. When you access your webcam using a web browser, you typically connect to the webcam over port 80.

Which Ports does HDOnTap require access to?

HDOnTap requires access to port 80 (HTTP) to configure settings within the camera and port 554 (RTSP) to pull a live stream from the camera.

What is NAT?

Network Address Translation (NAT) is a technology enabled in your router that allows each device on your local area network to have its own IP address. While each device on your LAN has its own IP address, from the Internet (outside of your private network/LAN), every request coming from computers on your LAN appears to be coming from the single publicly visible IP address assigned to your router by your Internet Service Provider.

If you want to browse the web from a computer on your LAN, the request does not go straight to the web server on the Internet. The request over port 80 is made from the private IP address on your LAN to the private LAN address on your router. The router makes a note of which internal device (your computer) is requesting the data from the web server, then forwards that request out to the webserver on the Internet. When the web server on the internet responds back to your router, your router knows exactly which computer on your LAN requested data and forwards that information along.

NAT works exactly the same in reverse! When a computer on the Internet requests a web page from your IP address, your router needs to figure out which internal device is a web server so the request can be filled. In the case of our use, NAT can handle such requests forwarding the request to the webcam on your LAN allowing us to remotely access the web interface on the camera. To allow this, we must setup port forwarding within the router.

DHCP and Static IP Addresses:

Devices connected to your LAN each have a unique private IP address (an IP address not known or understood by the public internet ). The devices can either be assigned an IP address that doesn’t change or assigned an IP address automatically via a service in your router called DHCP. If the network settings in your webcam are configured for DHCP (sometimes described as “automatic”), your router will assign an IP address to the camera automatically when the webcam is powered up and connected to your network. We suggest assigning a static IP address to your camera which is not used by other devices on your LAN and is not part of the pool of IP addresses that your router gives out via DHCP.

 

Setting up Port Forwarding:

Once your webcam has an IP Address on your network, verify that you can access the webcam. From a computer connected to the same LAN, put the IP address of your webcam into a web browser and hit enter. The HTML interface for your camera should appear and will typically ask you for a username and password. If you get this far, your webcam is successfully set up on your LAN.

The next step is configuring your router to forward internet requests to your webcam (port forwarding). As noted above, HDOnTap requires access to HTTP (web) and RTSP (streaming) ports which are typically 80 for HTTP and 554 for RTSP. Some webcams are configured differently by default and others allow you to change the HTTP port and/or the RTSP port used by the webcam. For the purpose of this tutorial, we are going to assume that your webcam uses port 80 and port 554 for HTTP and RTSP respectively.

As there are thousands of router models on the market, it is not possible to provide specific instructions on configuring each router model. Please consult the user manual for your router, which can typically be found by Googling “[Router Model Number] user manual”.

Depending on how your network is currently configured, you might have another device set up on your network accepting HTTP requests on port 80. For this reason, and to improve your network security, we suggest using external port 11080 for HTTP requests. In this case, you are essentially configuring your router to forward requests made to port 11080 of the public IP address of your router to port 80 of the private IP address of your webcam.

To configure port forwarding within your router, use a web browser to navigate to the router’s private IP address, then enter the username and password to log in to the router’s web interface. The port forwarding setup menu is typically found under the “advanced” or “firewall” menu within the router. Once you have found the port forwarding menu, configure the HTTP and RTSP port forwarding rules. Assign external port 11080 to internal port 80 of the private IP address for your camera for remote HTTP web access to your camera and apply the settings. Next, assign external port 10554 to port 554 of the private IP address of your webcam and apply the settings.

To verify that your settings are applied and functioning, try accessing your webcam from a computer outside of your network using the following URL format:

http://[Public IP Address of Your Network]:11080

If port forwarding is set up properly, you should see the web interface for your webcam.

 

Troubleshooting

If you are unable to access your camera:

  • Make sure the camera is powered on
  • Verify you are able to access the camera from a device on the same network by using the camera’s private/LAN IP address
  • Verify you are able to access the internet from a computer on the network
  • Verify that the camera’s network settings has a gateway/router IP address that matches the IP address you use to access the router from your network
  • Verify you are using the correct public IP address, which can be verified by using a computer or device on your network to visit the HDOnTap IP Address Tool

If you are still unable to access your camera after following these troubleshooting steps, download and install RustDesk, then contact HDOnTap during business hours at 858.481.4096.

Scroll to Top