Here is a simple guide that will help you setup your DVR (Security System) and Router for remote web access, using a DD-WRT router and a free DDNS service. This guide is intended for personal and home use. Corporate or industrial setups are far more complex to setup than this. I will not discuss about complex firewall and RADIUS setup here, since this guide is primarily intended for simple and basic home use setup. You could setup your own advance CCTV system once you understand and learn the basics of simple networking.
If you follow this guide, I’d like to warn you first that this requires a DD-WRT flashed router. I don’t have any other routers at hand right now, that is why this is the thing that I’m gonna use with the guide. The idea would be the same even when you use another router, you may still follow this guide. I’ll discuss with you about Port Forwarding, this feature is almost available in all modern-day routers in the market. I will not dig into technical details and will not explain every terminology used in this guide, but I will walk you through to setup the necessary things so you could access your DVR or CCTV system remotely via the Internet.
Follow this guide step by step and you will surely learn how to access DVR remotely even without a public static IP address.
You need the basic stuffs enumerated below for this guide. Read on.
Before following this guide make sure your Internet and CCTV/DVR are working as they should and that you already have a working home-network setup. When all is running fine, go ahead and start with this guide. Check the stuffs below and make sure it comes handy.
Things You Need:
- DD-WRT Flashed Router, or any other Router w/ DDNS support
- Router already configured to use PPoE
- ISP issued modem already in bridge-mode
- Network Switch/Hub, if you don’t have extra port from your router
- DDNS Service Account from No-IP.com
Steps To Take:
- Assign static IP and port number for your DVR or IP-Cam
- Setup port-forwarding
- Signup for Dynamic DNS service & setup DDNS in your DD-WRT Router
Terms You Need To Get Familiar With (in case you’re not)
- Private IP – means the IP address assigned and usable within your internal network or LAN.
- Public IP – means the IP address assigned to you by your ISP, most are dynamic IPs and changes all the time.
- Static IP – means an IP Address assigned manually and not by a DHCP server.
- Dynamic IP – means an IP address assigned dynamically by a DHCP server, like the ones issued by your ISP or by your router within your LAN.
- Port Forwarding – means the technique to re-route or redirect a packet bound to a specific UDP/TCP port and machine, to another specified port or machine.
Dynamic DNS (DDNS) – is a method that keeps a Name Server constantly updated with a host’s IP address.
Note: You don’t need a STATIC IP subscription from your ISP, just to get your CCTV remote viewing setup working or to setup your DVR for remote access. The reason why I’m telling you this is that, I came across a forum site where some of it’s veteran member suggests that you need to get a Static IP from your ISP to get the setup working. Not really a mandatory thing to get, with the power of Port Forwarding technique and DDNS, static Public IP will not be a requirement. What is required, is a static IP address assigned to your DVR or IP-Cam.
Let’s Get Started, Whenever You’re Ready
Before proceeding with the following steps below, make sure that you’ve already assigned a subnet for your private or internal home network. But in case not, do the first step below.
Assign static IP and port number for your DVR or IP-Cam.. There are ways to accomplish this; assign a static lease from your router or assign a static IP address from your DVR/IP-Cam Admin Panel. But I suggest that you assign the IP address using the admin panel. What you’ll be assigning is a Class C addressing, which are used only for internal network (ie: 192.xxx.xxx.xxx/255.255.255.0). Most routers are pre-configured to use
192.xxx.xxx.xxxas the router’s IP address and
255.255.255.0as it’s subnet mask. I suggest that you follow this scheme and assign one to your DVR or IPCam.
Advancing further with this guide, assign a static IP address to your DVR or IP-Cam using its Admin Panel. You may press the button
Menueither from the DVR itself or remote control. Generally you should see the settings from
Networkingscreen or other similar words. If you don’t see it from the main screen, explore the sub-menus.
When you found the setting, assign an IP using 192.xxx.xxx.xxx (ie 192.168.100.101) and also assign a port. There are two ports to fill-up, port for administration and port for viewing. So go ahead and fill those up, you may enter a port number like
9002. Most DVRs comes pre-configured with IPs and Ports, if your device comes with pre-configured network settings, I suggest that you just adapt and use it with this guide. You may adjust your router settings to match your DVR or IP-Cam’s network setting. The purpose of the port assignment is to specify a port dedicated for administration and another port for viewing only. To illustrate this further, take a look below.
Note: Only choose port range above 1024. Higher port range would be nice, but keep it below 65535.
When you access the Admin Panel via network, you typically type this in your browser’s address bar;
To just view or monitor a camera via Web, you would type like this in your browser’s address bar;
Take a look at the images below. That is how I’ve setup my IP address settings in my DD-WRT router.
Some DVRs or IP-Cams are configured differently, so it depends how its web server are configured. So you might need to consult your manual on how to reach your Admin Panel via web browser. With some model you have to type in like this (yours may be different);
http://192.168.100.101:9001/admin < -- for web admin http://192.168.100.101:9002/view <-- for web view
Alright, if your done with the IP address assignment, you can now test your settings and open up your DVR or IP-Cam’s admin panel using any browser you like (some old models have incompatibility issues with Internet Explorer 7 and below). Use the IP address and port combo that you had set in the previous steps mentioned above. You need a computer hooked to the same network and configured to use the same IP/subnet as your DVR configured with. So if your DVR is configured to use
192.168.100.101your computer should be configured to use
This is how it should look like in your DVR network setting:
Your DVR network setting
Address: 192.168.100.101 Netmask: 255.255.255.0 Gateway: 192.168.100.1
This is how it should look like in your computer network setting:
Your computer network setting
Address: 192.168.100.100 Netmask: 255.255.255.0 Gateway: 192.168.100.1
You don’t have to follow exactly the way I put the IP, you can make your IP addressing like
192.168.xxx.xxxwith a subnet mask of
255.255.255.0. The Gateway IP should be the IP of your router.
If you successfully accessed your DVR using your network config, then you may now proceed to the next step.
Setup the router and configure Port Forwarding. In this step I will discuss how to port forward in DD-WRT flashed routers, so I suggest that you have this router handy before proceeding with this step. But if you don’t have it, you may still follow, since port forwarding is generally the same with most routers. You’ll always find these fields; port range (port from and port to), application name, IP address and protocol The only difference are the location of menus and arrangement and placement of input fields.
I’m gonna be using my
Linksys WRT54G2 v1model, flashed with
DD-WRT v24-sp2 (10/10/09) micro. If you have a different router it’s alright, you can still follow this guide, since most routers has similar port forwarding menus.
Alright let’s start. Login to your DD-WRT router using your login credentials. Upon logging in navigate to
NAT / QoS>>
Then do the following steps:
- Fill up te
Applicationfield and enter
cctv-admin, or name it whatever you like. In this step, we’ll be forwarding ports to your DVR’s Admin Page.
- Fill up
Port fromand enter
9001. This is the port you had setup in your DVR or IP-Cam from the previous step.
- Fill up
Protocol, you may select
- Fill up
IP Addressand enter
192.168.100.101. This is the IP Address of your DVR or IP-Cam.
- Fill up
Port toand enter
- Repeat step 1, but this time you should enter
cctv-viewor name it whatever you like.
- Fill up
Port fromand enter
9002. This is the port you had setup in your DVR or IP-Cam.
- Repeat step 3 and step 4, you may substitute the IP address with your IP.
- Fill up
Port fromand enter
- Finally, click
- We’re done with this step, next we test our settings.
Test Your Port Forwarding Settings. To test if you successfully configured a
port forwardsetup, you need to access the IP address with a port number combo and from another separate network, that is not within your network. It should be from another outside network. So you’ll need another separate Internet connection to test your config.
To test your config, you should know what your current
Public IP Addressis. You can find this out by just typing
what is my ipin google.com’s search field. Doing this will show you the result page similar to the image below.
Now that you know what your Public IP is, go ahead and fire up your browser and enter the following in your address bar.
You should be redirected to your DVR’s admin panel’s web page. If you reached the page, then you have successfully configured a port forward setup in your DD-WRT router. By now, you already have a remote web access to your DVR or IPCam using your known public IP address. But that’s not it.
If your rebooted your router or your ISP changed your IP address, you can’t access your CCTV system using your previously known IP address any more. You need to know your new public IP address so that you could type it in and access your DVR or IPCam. But how would you know about the change? Your ISP or your CCTV system won’t even notify or update you about the change, so you need a method that will do this for you. This is where DDNS comes into play. DDNS service will not only notify you about the change, it will also notify and update a name server that maps your Public IP Address to an easy-to-remember hostname. So with this method,
22.214.171.124shall be mapped as
Read on, to follow the DDNS guide.
- Fill up te
Setting up a Dynamic DNS in DD-WRT. You need to configure this service in your DD-WRT router, specially when you’re on a a Dynamic IP Plan. You may also use this service with your static IP plan, but you may rather use a registered domain name if you have a static IP.
Subscribing to a static public IP plan is expensive in most third world countries, in my country (Philippines) static IP address subscription is almost 5 times the monthly subscription fee of a regular Internet Plan. It’s impractical to subscribe for such service only for the purpose of setting up a DVR for remote online access. But I’ve seen and met several people, personally and from forum sites, they subscribed for a static IP just for the sole purpose of “CCTV Remote View” or “DVR Remote Access” setup. I like to mention this again, what you need is a static IP address assigned to your DVR or IPCam, and not a Public Static IP (your internet ip address assigned by your ISP).
That being said, I like to mention that static public IP address that comes with a Web hosting account is not that expensive compared to the ones issued by Home Internet ISPs.
Let’s continue with this step, first of, login to your DD-WRT router and navigate to
DDNS. From the
DDNS Servicedrop-down menu, you’ll see a bunch of Dynamic DNS services like, DynDNS.org, No-IP.com and easyDNS.com. For this guide we’ll be using No-IP.com DDNS service for our Remote DVR Access setup.
DDNS is also available in most known stand-alone DVRs. Only thing is, they are bundled with a Paid-Subscription service like DynDNS.org or the manufacturer’s own DDNS service.
You need a No-IP account to follow-on with this guide, so if you don’t have an account yet, head over now to https://www.noip.com/sign-up and create an account. No-IP is a paid service, BUT you may signup for a FREE Account. The FREE account offers 3 hostnames but offers no-phone support and it’s Ads enabled. Plus you have to login every month to re-activate your account so you won’t lose your host name. If you fail to re-activate your account, your hostname will be deactivated. Not that bad for a Free Account.
To setup a proper Dynamic DNS in DD-WRT using the No-IP account, we need to input your No-IP account username and password in the designated input fields. So if you already have your No-IP account, input it now in the proper fields (username, password and hostname).
Hostnameis the name you configured during your No-IP account signup or the hostname you’ve created in
Manage Hostpage of the No-IP account dashboard. After doing this click
Apply Settings. When everything went smoothly, you’ll see a log status on the same page, under
Note: From the screenshot above,
Force Update Intervalis set to
1. This setting will check your current public IP address and will update and notify No-IP.com about your IP address change, with an interval of 1 day.
So everything went smoothly right? The question now is, how to access the DVR or IPCam remotely? Read further below to find out.
1. Time To Test Your Setup For Remote Access. To test your settings, you need another network for this. You have to access your DVR or IPCam remotely using another computer from another network. There are various ways to do this; you may use a pre-paid usb internet, use your data plan with your android or ios phone, ask a friend to access your DVR or IPCam remotely from his network or use web services like
http://www.portcheckers.com/ to test your port forwarding configs.
Upon logging in from another network, start a browser and access your DVR remotely by typing your No-IP host-name plus port number combo. In my case, I don't have a DVR but IPCam and I've forwarded port `9001` to my IPCam's IP address, that is `192.168.100.101` and my No-IP host-name is `chubbable-dvr.ddns.net`. So this is how I would type in my browser's address bar;
It should take me directly to my IPCam's view page. In your case if it doesn't, read back and make sure you have followed the guide correctly.
I've mentioned before in the previous steps (Step 1) that you need to assign a different port number for the DVR's admin page and the view page. Because each port number will be used for specific page. In my example I've used port number `9001` for admin page while port number `9002` for the view page.
**So this is how you would type in your address bar:**
* To access the DVR or IPCam's admin page remotely, type in `http://yourhostname.domain.tld:port`. In my case...
* To access the DVR or IPCam's view page remotely, type in `http://yourhostname.domain.tld:port`. In my case...
> Just substitute `http://yourhostname.domain.tld:port` with whatever you came up with in your No-IP Host Name Settings.
So there we have it, simple guide to get your setup working.
It’s a Wrap
I hope you successfully configured your own DVR remote access setup with this guide. It’s not that difficult right? It’s just a matter of simple port forwarding plus free Dynamic DNS service. You don’t need an expensive Static Public IP with your Home Internet Plan.
I hope you’ve learned now how to access your DVR or IP-Cam remotely with this easy and step-by-step guide.
In my next set of articles, I will write a guide on how to port forward with various router brands and how to setup bridge-mode with various ADSL Modems.
If you have questions, clarifications, suggestions or additional info with this guide, feel free to put your comments below.