Thursday, October 16, 2014

Belkin WiFi Netcam and IP Camera Viewer (Lite or Pro)

I picked up a couple of cheap WiFi Netcams because they were, well, cheap. That and they had infrared view. My go to solution prior to this has been an aging Evo 4G running IP Camera. It works fine, with sufficient light, but the battery has begun to bloat and I'd like to retire the setup.

Imagine my surprise when I setup the cameras only to find that not only is the included app only slightly more useful than a fart soundboard, but it's not even compatible with popular IP Camera viewers for Android! Well, that sucks.

However! Belkin cameras have well documented (in some circles), if unadvertised, feature -- a built in web server:
ModelsConnection TypeExample URLAudioTalk ModelCookiesFlags

DCS-5222L

JPEGhttp://IPADDRESS:554/image/jpeg.cgiNoNone

DCS-933L

JPEGhttp://IPADDRESS/image.jpgNoNone

HD NetCam

FFMPEGhttp://IPADDRESS//goform/videoPossibleNone

Other

JPEGhttp://IPADDRESS/shot.jpgNoNone

Other

JPEGhttp://IPADDRESS/image.jpgNoNone

Other

MJPEGhttp://IPADDRESS/videofeedNoNone

WiFi NetCam

FFMPEGhttp://IPADDRESS//goform/videoYesNone

WiFi NetCam

JPEGhttp://IPADDRESS/image.jpgNoNone

WiFi NetCam

MJPEGhttp://IPADDRESS//goform/videoNoNone
(Credit: http://www.ispyconnect.com/man.aspx?n=Belkin)

User: admin
Pass: admin

Unsurprisingly if you add this generic URL (http://IPADDRESS//goform/video) and credentials to IP Camera Viewer it works. Sounds great... unless you want to access it from outside your home network. Sure you could forward the port from your router, but what about those unfortunate credentials? As far as I can tell these are hard coded. Lovely. There's a telnet server running on the NetCam (if you're on a sufficiently old version of firmware) you can probably change credentials here, though I don't know if that'll have... other repercussions.

But, let's say you're hell bent on making this work externally, with your own credentials, and you have a linux server at your disposal. Now you're starting to sound like me, get a life.

This all assumes, of course, that your linux server is on the same network as the NetCam. If so, this is a great opportunity to use mod_proxy in apache. (These directions are written from a Debian centric viewpoint, but should work on any other platform with slight variations.)

Here's what I did:
  • a2enmod proxy
  • a2enmod headers
  • a2enmod proxy_http
  • httpasswd -cb /etc/apache2/campass <user> <pass>
  • vim /etc/apache/conf.d/cam.conf

    ProxyPass /cam1 http://IPADDRESS//goform/video
    ProxyPassReverse /cam1 http://IPADDRESS//goform/video

    <Location /cam1>
    RequestHeader set Authorization "Basic YWRtaW46YWRtaW4="
    AuthType Basic AuthUserFile "/etc/apache2/campass"
    AuthName Limited! require valid-user
    </Location>
  • The RequestHeader line is passing a hash of "admin:admin" to the NetCam's webserver to pass basic auth, the htpasswd file makes your proxy URL honor your own new credentials
  • Restart your apache server!
Now just add http://yourserver:port/cam1 to IP Camera Viewer and voila, it works.

UPDATE: Be aware that this undocumented feature appears to be removed in newer versions of the firmware for NetCam. For instance 2.4.1.4 works, 2.4.4.7 does not. One of my cameras came with the former and the other the latter. I see no way to downgrade the firmware yet so I can only use this method for one of them. Sad faces all around.

UPDATE 2: If you leave the camera in setup mode, the undocumented feature is active. I'm wondering if the sole original reason for this service was so that during setup you can get a camera preview. Regardless this will work.

UPDATE 3: Be aware that if you're following my tip in update 2, this does leave a backdoor into your wifi, that is, someone can join the open setup wifi that the netcam broadcasts, open up the netcam app, find your wifi SSID + pass, and then log on to your actual wifi. So I would not recommend using this as long term solution. Basically I hate Belkin.

33 comments:

  1. Thanks a lot for your second update! I can finally use my Belkin WiFi NetCams to record videos locally in my personal server.

    Seriously I hate that Belkin forces you to use their crappy cloud service with subscription fee to enable video recording 24/7.

    ReplyDelete
  2. Has there been any progress with other ways to access the "Camera Web Server" with the new firmware (2.6.x)? Is the update 2 method still valid on this version? Thx

    ReplyDelete
  3. [ipadress]/goform/snapshot?n=1 also works for JPEG flux

    ReplyDelete
  4. Hey,

    do you by any chance have the 2.4.1.4 firmware file?

    I need to reinstall and would help a lot (since I don't want to upgrade to newer firmware)

    Thank you
    Nicola

    ReplyDelete
  5. How are you flashing the fw?

    ReplyDelete
  6. Since i'm still in 2.4.1.4 I can do it right from internal webserver @ http:///homeorg.asp . I just would like to reinstall it since itìs probably corrupted.

    I also have a camera with a newer firmware and I would like to downgrade... does anyone know how to do it?

    ReplyDelete
  7. Very Well Written article. Full of useful information. These kinds of articles attract people. You did a great job. I m pleased with your and thankful for such a wonderful article.
    Belkin Setup

    ReplyDelete
  8. great topic. thank u so much for sharing your research with us
    Belkin Login
    mywifiext.net

    ReplyDelete
  9. I was trying to setup my Netgear Ex2700 Extender several times after factory resets. Each time the "genie" pops up and I go through the steps to connect to my WiFi and it assignes the _EXT name to it then it reboots. I can then connect to the new _EXT Wifi name but there is no Internet connection and I cannot access the mywifiext.net page.

    ReplyDelete
  10. Informative post. Thanks for sharing with us.
    HD Wifi Camera

    ReplyDelete
  11. Really good topic about Wifi camera. Thanks a lot of sharing this useful
    article with us. linksys extender router login
    how to reset linksys range extender

    ReplyDelete
  12. Nice post about Belkin WiFi Netcam. Thanks a lot sharing information. mywifiext

    ReplyDelete
  13. If you're looking for security cameras to protect your business, farm, house or any other property Then buy CCTV Software for PC at a very affordable Price.

    ReplyDelete
  14. Thanks for sharing this valuable post. Belkin Range Extender optimizes your existing WiFi network and extends it to hard-to-reach places with the next generation WiFi technology.
    Roku Support

    ReplyDelete
  15. The post are really good, and wonderful to visit your site.
    SAFEALL Audio & Video Intercom Systems

    ReplyDelete
  16. This comment has been removed by the author.

    ReplyDelete
  17. Laxmi pipe industries is leading Steel Pipe Manufacturer In India. we manufacture and supply various shape pipes like eye shape, grooved pipes etc.

    ReplyDelete
  18. IENERGY NATURAL RESOURCES LIMITED (INRL) is leading us coal supplier in india.

    ReplyDelete
  19. Shreeja Health Care is leading Manufacturer, exporter, supplier, and Wholesaler of Oil Extraction machine

    ReplyDelete
  20. Thanks a lot for sharing kind of information. Your article provide such a great information with good knowledge. Wifi ip camera is better than wired. I use wireless burglar alarm over 8 years to protect my home and family from criminals. I am satisfied from its mind blowing performance. It easy to install because of wifi connectivity. Its really helpful for all.

    ReplyDelete
  21. Want to buy designer dining set online? Explore our wide range of comfortable desi in different shapes, colors and styles. Shop online now!

    ReplyDelete
  22. Jalaram Furniture offers huge selection of fabric to leather, classic to modern wide selection of living room sofas to suit your taste and style. Shop now!

    ReplyDelete
  23. Jalaram Furniture offers a huge selection of high quality modular office furniture in surat, home decor & more in one of the best online furniture stores in Surat.

    ReplyDelete
  24. Jalaram furniture is the best furniture showroom in gujarat.Shop online now!

    ReplyDelete
  25. Laxmi pipe industries is leading Steel Pipe Manufacturer In India. we manufacture and supply various shape pipes like eye shape, grooved pipes etc.

    ReplyDelete
  26. Most reason behind heart disease is unhealthy oil.
    You should use pure cooking oil. Refind oil is also harmful for your heart.
    The best solution is extract cooking oil at home.
    For that you can use Shreeja Oil Maker Machine which is able to extract oil from various seeds like peanuts, Coconut, Sesame, Soybean, macadamia nuts, vegetable seeds, walnuts, sunflower seeds, flaxseed etc...

    ReplyDelete

Followers