Foscam C2M IP camera


The Foscam C2M IP camera is a 2MP indoor security IP Camera. The camera can be interfaced via a CGI API. This page report some of the known CGI commands. Each command has been tested, if you think some are missing, please contact me, I'll update the page.

In the following, we assume

Foscam C2M IP camera


The simplest command to test is getting a snapshot from the camera. The camera send a JPG image to the browser. Note that the default HHTP port is 88.

http://<IP of the camera>:<HTTP port>/cgi-bin/CGIProxy.fcgi?cmd=snapPicture2&usr=<username>&pwd=<password>

This command returns a 2 mega pixels image (resolution = 1920 x 1080 pixels). Here is an example of snapshoot:

Snapshot in browser of a Foscam C2M IP camera

Snapshot in browser of a Foscam C2M IP camera by night

Video stream

The second command is for getting live video stream. It seems this camera can't provide video stream for browser. The only option is to retreive the rtsp stream, for example in VLC :

rtsp://<username>:<password>@<IP of the camera>:<HTTP port>/videoMain

This command returns a 1920 x 1080 pixel live video stream. Here is a video of the result in VLC:

See also

Last update : 01/15/2021