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.

21 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. great topic. thank u so much for sharing your research with us
    Belkin Login
    mywifiext.net

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

    ReplyDelete
  9. 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
  10. Nice post about Belkin WiFi Netcam. Thanks a lot sharing information. mywifiext

    ReplyDelete
  11. 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
  12. 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
  13. This comment has been removed by the author.

    ReplyDelete
  14. 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
  15. The following recommendations itemise the steps which should be taken to improve your WiFi network's security. 192.168.10.1

    ReplyDelete
  16. since i have been running my own busines at home, i have always been monitoring business news on the internet and cable television. กล้องวงจรปิด ip camera

    ReplyDelete

Followers