How can I tune my router (add a port forwarding rule)?

How does the solution work on AWS Marketplace?

To set port forwarding for your cameras you will need the following information:
● Internal IP address of the camera you want to bring online;
● External IP address of your router;
● Internal IP address of your router;
● Port range for your camera.
It may take you from 7 to 15 minutes to complete all the steps below.

1. First, find the External IP address of your router. To do so, Go to the page that shows your IP address - open URL https://www.myip.com/ or https://www.showmyip.com in your browser. When the page opens, you will see the external IP address of your router - something like 12.34.56.78. Write it down.
2. Find out the router's internal address. This will depend on what OS is on your computer.
For Windows:
Press Win+R on your keyboard, type in cmd, and press Enter - command-line window opens. In the terminal window type ipconfig and press Enter.
The network configuration of your computer shows up. Find “Default gateway” line - in the example screen this is 192.168.1.1. To check it, open the browser and type this IP address as URL, press enter - if it opens the router login page or router settings - then you have the internal IP address of your router and write down.

ipconfig

MacOS:
In Launchpad find the application Terminal and start it. Type in netstat -rn |grep default - you will see the output similar to the one on example screen (caption below).
From here you need the first IP address next to the string “default” - on the example screen it is 192.168.3.1. To check it, open the browser and type this IP address as URL, press enter - if it opens the router login page or router settings - then you have the internal IP address of your router and write down.

Illustration

3. Define the port range to be used for video streams. RTSP stream from camera normally uses port 554, so for camera 1 we’ll assume external port 10554, for camera 2 - external port 11554, for camera 3 - external port 12554, and so on.

4. Next, you need to configure your router port forwarding list. Check the documentation on your router on https://portforward.com/ or from the list below. Open browser, type in router internal IP address as URL, press Enter - router settings or router login page opens (if login page opens - user your router login and password). Go to the port forwarding section (often called “virtual server”) and enable it if not done yet, and set port forwarding rules for all cameras you want to monitor. Your port forwarding list should contain the following new entries :

Illustration

5. When done, check if your port forwarding works correctly for the outside of your network. How to do so - please check here, at the list of widely used routers:● Asus, ● TP-Link,● D-Link, Linksys, ● Netgear, ● Synology, ● Cisco, ● MikroTik, ● Huawei, ● Juniper, ● Aruba.