Configuring Port Forwarding: A Step-by-Step Guide

Introduction

Port forwarding is a technique used to allow external devices to access services from a device on a local network. This is particularly useful for hosting servers, gaming, and cloud video surveillance. Here’s a comprehensive guide on configuring port forwarding and verifying its functionality.

Step-by-Step Workflow to Configure Port Forwarding

The exact procedure to create a port forwarding rule will depend on your model of the router and/or the service provider. In general, you will need to have Administrator level access to the router at the camera's location. Note: Please refer to your service provider documentation if the steps shown below do not work for your modem.
  1. Access Your Router Settings:

    • Open a web browser.
    • Type your router’s IP address into the address bar (common default IPs are 192.168.0.1 or 192.168.1.1).
    • Log in using your router’s admin username and password.
  2. Locate the Port Forwarding Section:

    • Navigate to the port forwarding section, which might be under "Advanced", "NAT", "Virtual Server", or "Firewall" settings, depending on your router model.
  3. Create a New Port Forwarding Rule:

    • Service Name: Give your rule a name (e.g., “Cam 01 Port Forwarding”).
    • External Port: Enter the port number you want to open (e.g., 80 for HTTP). You can also start with a new series for all your cameras for example, 5001 for your first camera and so on.
    • Internal IP Address: Enter the IP address of the Camera you want to forward the port to (e.g., 192.168.1.100).
    • Internal Port: Enter the port number that the service is using on the internal device (often the same as the external port).
    • Protocol: Make sure to select TCP/UDP for the protocol, in some routers this mode is called "Dual" for both rules. 
  4. Save and Apply the Settings:
    • Save your changes and apply the settings.
    • Restart your router if necessary to apply the new configuration.

Verifying Port Forwarding

To ensure that your port forwarding configuration is working correctly, you can use online port checking tools. Here’s how:

  1. Use Online Port Checking Tools:
  2. Verify Public IP Address:
    • Search “what is my IP” on Google to find your public IP address.
    • Compare this IP with the one shown in your router’s status page.

Troubleshooting: Public IP Address Issues

Sometimes, port forwarding may not work due to issues with your public IP address:

  • Different IP Addresses: If the public IP address shown in your router differs from the one shown by a web search, your ISP might not be providing a true public IP address. This situation arises due to:
    • Carrier-Grade NAT (CGNAT): ISPs use CGNAT to conserve IP addresses, which means multiple users share the same public IP.
    • Solution: Request a true public IP address from your ISP.

Alternative Solutions: Push Technology

If obtaining a true public IP address is not feasible, consider using push technology for a secure connection. Push technology eliminates the need for port forwarding and offers enhanced security.

Managing Dynamic IP Addresses

If your public IP address is not static (i.e., it changes periodically), using a dynamic DNS (DDNS) service is crucial. DDNS updates your domain name with your current IP address, ensuring continuous access.

  • Example Service: DynDNS.org
    • Register for a DDNS service.
    • Configure your router to update the DDNS with your current IP address.
Tags