How to view your CCTV Cameras
from the Internet
First of all you need to understand the concept of the LAN and the WAN. The LAN is inside your house and all the IP addresses must be unique inside the house. The router manages the LAN IP addresses and they normally start with 192.168.XXX.XXX. When your devices boot up they declare their presence on the LAN and the router assigns them an IP address. Devices can be given different IP addresses when they boot up in the future but they are always unique within the house. The WAN is the public internet and your router gets an IP address for your house from the ISP and is unique in the whole world. When your router is rebooted you may get a new IP address assigned by the ISP.
As you can see IP addresses are dynamic in nature both on the LAN and WAN. This is a problem if we want to tunnel into the DVR remotely as we need to know the DVR has an IP address on the LAN that is not going to change and we need to know the house IP address on WAN and that is not going to change or if it does then we need to know how we can find out what it is. We will deal with these one at a time.
Fixed IP address for the DVR On the
n order to ensure the DVR IP address does not change you must first of all let the DVR boot up and obtain an IP address from the router. You can then log into the DVR via a monitor plugged into the VGA output of the DVR and go into the network settings to see what IP address the DVR has been given. Then you need to log into the router and tell the router to always give that device the same IP address. The menu’s to do this will vary from router to router. You might find a menu for PC Database or DHCP Table or something like this. Once you have selected the DVR you are looking to give it a fixed mapping or bind its IP address to its MAC address. Again the terminology may vary depending the router. Once this is done you can rest assured the DVR will always have that IP address no matter how many times it boots. At this point you can pull up a browser on a computer on the LAN and you can pull up the cameras by entering http://. For example if the LAN IP for the DVR is 192.168.123.115 then you simply enter http://192.168.123.115 and the browser should populate with the DVR user login screen. The default login is username – admin and password – 12345.
Open Up Ports on the Router
To be able to tunnel into the DVR from the outside world you need to access ports 80 and 37777 on the DVR. Port 80 is for the browser content and port 37777 is for the video stream. When you come in form the outside world the router will block these ports preventing you from accessing the DVR. To solve this you need to open up the ports. Again different routers may call this function different names but you are looking for Port Forwarding or Virtual Servers or Open Ports. You need to open two ports. With port 37777 you can just go ahead and open this port and direct it to the LAN IP address of the DVR at port 37777. However, port 80 is a well known port and you really should not open that port up. It would be more secure to think up an odd number like 52010 and open that port up on the WAN side of the router and direct that to the DVR at port 80. This port is then actually being mapped from port 52010 on the outside (WAN) to port 80 on the inside (LAN). This is sometimes called port translation.
WAN IP Address
The simple solution with regards to the WAN IP address is to pay the ISP to give you a static IP address. This will then allow you to connect to your DVR directly. For example if your WAN IP is 184.108.40.206 then you would connect to your DVR using the secret port (52010) by typing in http://220.127.116.11:52010. The router will then pass you straight through to the DVR on the LAN on port 80 and your browser should load up. In the background the browser also uses port 37777 for the video stream but since we opened up the same port on the WAN and LAN for this port then it should flow straight through.
However, you have indicated that you do not want to pay for a static IP address. In which case you have to use dynamic DNS to find the WAN IP of your router. This basically involves registering a new domain name with a dynamic DNS service provider and your router updates the DNS service provider with what its WAN IP address is every time it gets allocated a new IP from the ISP. An example of a DDNS provider is www.dyndns.org. First of all you have to go to their website and register as a user. You can then register a domain such as www..homeip.net. You then log into the router and look for the Dynamic DNS settings. In here you enable the feature and put in the DDNS service provider which in this case will be www.dyndns.org and you put in your username and password for your account. From then on the router will update the DNS server with its WAN IP address when it boots up. When you want to access your cameras you then enter www..homeip.net:52010. Using DDNS you never actually need to know what your IP address is as the DNS server works it out for you.