This website requires certain cookies to work and uses other cookies to help you have the best experience. By visiting this website, certain cookies have already been set, which you may delete and block. By closing this message or continuing to use our site, you agree to the use of cookies. Visit our updated privacy and cookie policy to learn more.
This Website Uses Cookies
By closing this message or continuing to use our site, you agree to our cookie policy. Learn More
This website requires certain cookies to work and uses other cookies to help you have the best experience. By visiting this website, certain cookies have already been set, which you may delete and block. By closing this message or continuing to use our site, you agree to the use of cookies. Visit our updated privacy and cookie policy to learn more.
SDMmag logo
search
cart
facebook twitter linkedin youtube
  • Sign In
  • Create Account
  • Sign Out
  • My Account
SDMmag logo
  • Home
  • Magazine
    • Current Issue
    • Digital Editions
    • Archives
    • Monitoring Today
    • Professional Security Canada
  • Products
  • Newswire
  • Exclusives
    • SDM 100 Report
    • Top Systems Integrators Report
    • Annual Industry Forecast
    • State of the Market Series
    • Dealer of the Year
    • Systems Integrator of the Year
    • TMA Monitoring Center Excellence Awards
    • Blog
    • PSA Leadership Institute
  • Topics
    • Trends & Industry Issues
    • Video Solutions
    • Access Control & Identification
    • Smart Home
    • More SDM Topics
  • Columns
    • Editor's Angle
    • 5-Minute Tech Quiz
    • Security & the Law
    • Security Networkings
    • Digital Shuffle
    • Technology @ Work
    • Insider News & Business
    • Today's Systems Integrator
    • Marketing Madmen
    • Sales Stars
    • Smart Insights
  • Events
    • Industry Calendar
    • SDM 100 Gala @ ESX
    • Webinars
  • More
    • Videos
    • Podcasts
    • ISC West 2019
    • Photo Galleries
    • Newsletters
    • Classified Ads
    • SDM Store
    • White Papers
    • Sponsor Insights
    • More Resources
  • Directories
    • Buyers Guide
    • Take a Tour
    • Guide to Distributors
    • Guide to Central Stations & Monitoring
  • Contact
  • Advertise
Home » IP Device Programming
Security NetWorkings

IP Device Programming

DDNS for Fun & Profit

dyndns.org
Inputting URL Into dyndns.org

dyndns.org provides a simple way to establish a specific host name (URL) for your client's public IP address.

IP address diagram
Dave's Home Network

Notice that the attached DVR does not see the true public IP address; that address is only available at the DSL adapter of this particular network.

IP address changes diagram

Update Graphic From Router

While this router has the capability of reporting IP address changes to dyndns.org, it doesn’t “see” the public IP address. The “Internet IP Address” indicated, 172.16.1.34, is the address for the WAN side of the router.

dyndns.org
IP address diagram
IP address changes diagram
September 19, 2011
David Engebretson
KEYWORDS default gateway address / dyndnsorg / IP address changes
Reprints
No Comments
After a recent trip to southwestern Michigan I accidentally discovered three important facts: First, the lake my house is on actually has no bottom, which I found out when I slipped off the wet dock and sunk up to my wallet in oozing muck. The second discovery was that carrying my trusty old Nokia cell phone in my cargo pocket wasn’t a great idea, as the water and muck killed the device. And third, after obtaining a new phone from my provider, I found out that I didn’t like the new phone and I am still struggling with its features and functionality.

In general, people don’t like things to change, and they’d like them to remain the same. When we propose to provide IP-enabled security devices such as cameras to our clients, we most likely don’t want to force the customer to change their ISP service.

Most small businesses and residential clients will purchase the least expensive “broadband” connection they can get from their telephone or cable company. These low-cost Internet hookups almost always receive their public IP address from the ISP’s Dynamic Host Control Protocol (DHCP) server. This means that the public IP address at that location can change at any time, whether because of a momentary power outage or just the quirks of the ISP. While the customer can probably upgrade their Internet connection to provide static public IP addresses, this is an expensive option that might cause the client to decline the installation of the IP security devices. Any change that is going to cost the client in time or cost is probably a deal-breaker.

DHCP public IP addressing causes a major problem if the security contractor has sold the customer on the concept that the client can access/view/control IP-enabled security devices from over the Internet. If the public IP address has changed, where did it go?

If there is a person available at the target site that has Internet access through the same LAN that the security devices are connected to, then it is a simple matter to obtain the current public IP address. All the person has to do is access a web browser like Firefox or Explorer and type http://www.whatismyip.com, and their current public IP address will be displayed.

Of course this doesn’t solve our problem when Mr. Murphy arrives and changes the dynamic public IP on Saturday morning, when no one is available at the target location to manually retrieve the new IP address. So do we force our clients into changing their Internet service to provide a static public IP address? The answer is “Noooo”!

Dynamic Name Service (DDNS) is an Internet function that’s been around for years and provides a fairly simple way to track a changing public IP address at a client’s location.

DDNS works just like your cell phone — provided you didn’t dip it in the muck of the lake. Your cell phone lists contact names and phone numbers so that you don’t have to remember a numeric telephone number, you can just push the right button(s) to call your family, friends, office, etc. DDNS is an offshoot of Domain Name Service (DNS) which is basically an Internet address book that relates URL (Universal Resource Locator) names such as www.google.com to their true numeric public IP address. What makes DDNS service unique is that the user can select his or her own URL name, and have their dynamic IP addresses recorded on the DDNS server so that when a user inputs the URL, the communications are forwarded to the correct public IP address.

I’ve used the DDNS service from www.dyndns.org for more than eight years, and not only is it free but it works great. Instead of having to remember a string of numbers all I have to type into a web browser to get to the cameras and devices on my LAN in Chicago is http://davee.shacknet.nu, along with the appropriate software port number of the device I’m shooting for at that moment and I’m immediately hooked up to my NVR, individual cameras, or my router at home.

All a new user has to do is go to the dyndns.org website, register as a user, obtain a user name and password, and input a unique name for a particular public IP address.

Once dyndns.org has informed you via e-mail that the address you input is unique in their system, you can then input the current public IP address of the client’s location, run a test, and you’re good to go — at least until the public IP address of the client’s location changes, which is when the programming tricks come into play that will keep the DDNS service updated to the changed IP address.

The DDNS service cannot know if a public IP address has changed by itself; there must be a device or software on the same public IP connection as the target device(s) that will detect that the public IP has changed, and will automatically update the DDNS service with the new address. This device could be the router, or possibly the camera/encoder/NVR itself, or a PC on the network. Many vendors provide their own DDNS service that can be initiated within an IP camera, DVR, or what have you. But you need to be very careful if you try to use the DDNS service that is built into a security device.

What is critical here for you to understand is that the device that does the updating must see the true public IP address, not just the default gateway to the next network.

If you ask an IP-enabled security camera installed on a typical LAN what the public IP address is for that Internet connection, the camera would reply with the default gateway address — for example, 192.168.1.1. The camera thinks that is where the Internet is because that is the path it takes to get out of the LAN and onto the Internet. It’s like if you ask me how to get to New York from downtown Chicago: I would tell you to drive southwest on the Stevenson Expressway. But, you say, New York is east of Chicago, so what are you saying, Dave? I said you drive southwest on the Stevenson to get to Midway Airport and fly to LaGuardia. That’s my path to New York.

It’s the same with IP cameras, encoders, and other security devices. Let’s look at the diagram here to see how the IP addresses are set in a typical home/small commercial LAN.

As you see here, the router does not see the true public IP address; instead its path to the Internet goes through the local address of the DSL adapter, 172.16.1.34, and only the DSL adapter sees the true public IP address. While the router can be programmed to automatically update dyndns.org, it won’t work properly because it doesn’t see the real public IP.

The work-around for this very common issue is to use an “updater” software program that is available for free from dyndns.org. Once downloaded it should be installed onto one of the client’s PCs that is turned on and used daily. When properly programmed with the correct URL, user name and password, this software will continually check the public IP address and if it changes it will automatically update dyndns.org and everything is a go. Functionally the updater software is performing the www.whatismyip.com trick every few minutes. I have this program on my desktop PC at home, and it works pretty much perfectly.

Save yourself and your clients from having to remember a numeric public IP address and provide them with automatic updating when their DHCP ISP Internet address changes. You need to try this service yourself from your home or office and get comfortable with it. Try it and you’ll be a believer.

Subscribe to SDM Magazine

Recent Articles by David Engebretson

IP Comes to Intercom & Speaker Systems

Better, Faster and Less Expensive: Cat Crimping for Professionals

The QNAP NAS Pairs Perfectly With Axis Cameras and Software

Christmas in July

Cloud Services

Sdm0611-networkings-portimg-02

David Engebretson is the president of Slayton Solutions Ltd., Chicago, providing online and instructor-led training on fiber optics and networking electronic security systems. His latest book, Technician’s Guide to Physical Security Networking: Enterprise Solutions is a fully illustrated manual describing high-end IP physical security applications. Visit www.slaytonsolutionsltd.com for ordering information.
 

Related Articles

IP Network Testing

IP Comes to Intercom & Speaker Systems

Better, Faster and Less Expensive: Cat Crimping for Professionals

Easy Upgrade

Related Products

SDM Buyers Guide

Integrated Security Systems Design, 2nd Edition - A Complete Reference for Building Enterprise-Wide Digital Security Systems

Digital Video Surveillance and Security 2nd Edition

Physical Security: 150 Things You Should Know 2nd Edition

Related Directories

Inovonics

Security Response Center

You must login or register in order to post a comment.

Report Abusive Comment

Subscribe For Free!
  • Print & Digital Edition Subscriptions
  • SDM eNewsletter & Other eNews Alerts
  • Online Registration
  • Subscription Customer Service

More Videos

Sponsored Content What Is Sponsored Content

Sponsored Content is a special paid section where industry companies provide high quality, objective, non-commercial content around topics of interest to the SDM audience. All Sponsored Content is supplied by the advertising company. Interested in participating in our Sponsored Content section? Contact your local rep.

Close
Featureimage_900x550__ovl0jlkbbj__
Sponsored By
Schneider Electric

New Digital Load Management System Drives Productivity and Enables New Business Models

Motor starter selection and configuration has always been a labor-intensive task. To address this challenge, machine builders and system integrators must adopt new technologies that simplify motor starter selection, installation, configuration and maintenance.

Popular Stories

Dealer of the Year(2019)

SDM 2019 Dealer of the Year: CPI Security of Charlotte, NC

ACT365-ipad

3 Reasons You Should Be Offering Cloud-Based Access Control

Supreme Security Systems

Supreme Security Systems Acquires T&R Alarm Systems

STANLEY

STANLEY Security Partners With Indianapolis Colts to Honor Local ‘Security Champion’

GettyImages-1087183206

Whatever Happened to the Prediction of a Mass Extinction of Security Dealers?

SDM 2019 Top Systems Integrators Report

Events

January 1, 2030

Webinar Sponsorship Information

For webinar sponsorship information, visit www.bnpevents.com/webinars or email webinars@bnpmedia.com.

View All Submit An Event

Poll

Hiring Women in Security

Has your company made any efforts in the past year to specifically hire and/or promote women in managerial/executive positions? (Please select the best answer.)
View Results Poll Archive

Products

Contemporary Security Management, 4th Edition

Contemporary Security Management, 4th Edition

 Contemporary Security Management, 3rd Edition teaches security professionals how to operate an efficient security department and how to integrate smoothly with other groups inside and outside their own organizations. 

See More Products

SDM Magazine

_FC_SDM1219 cover 144x192

2019 December

Check out SDM Magazine’s December 2019 issue, featuring "CPI’s Key to Success Is Controlling ‘the Experience’ in-House", "Monitoring Services: The Cutting Edge", and much more.

Check back throughout the month for new content!

View More Create Account
  • Resources
    • List Rental
    • Online Exclusives
    • Industry Innovations
    • Partners
    • Privacy Policy
    • Survey And Sample
  • Want More
    • Subscribe
    • Connect

Copyright ©2019. All Rights Reserved BNP Media.

Design, CMS, Hosting & Web Development :: ePublishing