Blog

Viewing Security Cameras via the Internet with DynDNS

My intranet consists of a LinkSys cable router with service from Cox Communications. I run a DHCP network for the family of seven, each of whom has at least one computer. There are numerous network devices under DHCP, but the cameras were all assigned static IP's.

The Goal
The goal here is to be able to securely view each of three Lorex cameras from anywhere on the Internet.

The Environment
My environment consists of the following:

  • Linksys BFSR41 Cable Router
  • Cox Communications Premier Hi-speed Internet service
  • DynDNS CustomDNS service
  • Two Lorex IPSC2260 and one IPSC2230 IP enabled cameras

    The Problem
    Each camera has a built-in web server. While this makes setup and maintenance very easy, it also makes it difficult to view each camera directly from the Internet when using DHCP. From my work with the cameras, it appears the reason is that any TCP/IP packet coming into the router will first look at the port (80), then look down the list of Port Forwarding IP's and send the packet to the first IP it finds answering the mail for port 80. One solution would be to pay four times the cost of a single CustomDNS service from DynDNS and give each camera its own Internet enabled IP. This is an expense I want to avoid.

    The Solution
    The solution I implemented was to use the WebHop feature of DynDNS's CustomDNS to port forward a cname over to a specific IP. Thus, I have three cameras positioned around the house:

  • Garage; mounted at the end of the garage rotating 270 degrees from front-door to garage door
  • Guest House; a.k.a. the little house, watching the back door
  • Pump House; positioned on the side of the house under the eaves pointed at our well Each camera appears to recieve a TCP/IP request on a configurable port (defaulted to 80) and return streaming videa via a configurable UDP port (defaulted to 9001).Using the Lorex setup, I setup each camera to have a static IP, a port other than 80, and a UDP port other than 9001. The TCP and UDP ports are important because they are plugged into the Linksys router and DynDNS setup. My setup was:
    Location TCP Port UDP Port
    Garage 82 9002
    Guest House 83 9003
    Pump House 84 9004

    Using the above ports, I opened the Lorex setup for each camera, choose "Network" under the "Basic Settings". I set the Port and UDP numbers here, but I did NOT change the DynDNS settings. The cameras would not have an individual DynDNS service to plug-in here. For security, I went to "Account Settings" under "Basic Settings" and added a username/password.

    My next step was to open the Linksys router's configuration and go to "Applications & Gaming" which brings up the port forwarding configuration. I made two entries for each camera; one for the TCP port number and one for the UDP port number.

    The next step was to go to DynDNS's configuration and add a MyWebHop for each camera. I used the name of the camera as the hostname (e.g. "pumphouse"). I included the port number on the redirect URL (e.g. http://example.com:82/). I also cloaked the URL so that the user did not see the port number after the first returned page.

    The Result
    I now have the ability to view all three cameras from anywhere on the Internet using their cname (e.g. http://pumphouse.example.com/Cam1.htm) securely by using the username/password in the Lorex setup above.

    The Credits
    If the solution sounds straight forward and simple, it is. But it wasn't without trial-and-error for me. Help came from DynDNS, several times on a weekend including Sunday. The following were particularly helpful: Jason Hutchins, Brad Goodwin, Christian Smith, and Mark Parraway. I HIGHLY recommend DynDNS and thank them for their help!

  • Leave a Comment

    You can use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>


    4 + = twelve

    Spam Protection by WP-SpamFree

    Translate This Page

    Translate to EnglishÜbersetzen Sie zum Deutsch/GermanTraduzca al Español/SpanishTraduisez au Français/FrenchTraduca ad Italiano/ItalianTraduza ao Português/Portuguese日本語に翻訳しなさい /Japanese
    한국어에게 번역하십시오/Korean中文翻译/Chinese Simplified中文翻译/Chinese Traditionalترجمة الى العربية/ArabicVertaal aan het Nederlands/DutchΜεταφράστε στα ελληνικά/GreekПереведите к русскому/Russian
    Oversetter til Norsk/NorwegianÖversätta till Svensk/Swedishहिन्दी अनुवाद करने के लिए/HindiTradueix al català/CatalanTulkot uz latviešu/LatvianPreložiť do slovenčiny/SlovakПереклад на українську/Ukrainian
    Plugin by Taragana

    Testimonials

    Bill Hamilton is a masterful IT professional: integrating keen intellect, efficient project planning, and collaborative business practices to cohere the multi-disciplinary development team to laser focus. He consistently delivers on time, on budget, and above required functionality--an IT triple crown. His personal specialties include with rapid development, Scrum, data mart/warehousing and complex business rule-driven extract/transform/load. I would actively and aggressively seek Bill to be my technical lead.

    CAPT Andrew P. Spencer
    Chair, Clinical Excellence Navy Nursing Strategic Goal at Navy Medicine