Setup Guide

These setup instructions assume you are using a Windows PC. If you are trying to run the application under the Mono framework on Linux or a Mac, some steps will differ and you may need to ask Google for help.

Step 1

Note: I think you can skip Step 1, as this was only needed for ImageMagick which is no longer being used by this application.

Download and install Visual C++ Redistributable for Visual Studio 2012

from http://www.microsoft.com/en-us/download/details.aspx?id=30679

When it asks you which file you want to download, choose the one with x86 in the name.

Step 2

Download the application from the Downloads section here on CodePlex, and extract to your hard drive somewhere.

Step 3

Test for errors with the default configuration by running MJpegCameraProxyCmd.exe. A console window should appear and tell you that the service is listening on port 44456. If all goes well, you should be able to close the application without doing anything else.

Step 4

The previous step will have created a file named Config.cfg in the same directory. Open this file in your favorite text editor.

At the top, you will see two XML elements, webport and webport_https. These contain the two TCP ports the embedded web server will listen on. The first port, webport, is for ordinary un-encrypted HTTP communication. The second port, webport_https, is for encrypted SSL connections (HTTPS protocol).

Note that the default web port is 44456, and the default webport_https is -1 which means the secure SSL interface is disabled by default. If you enable the SSL interface, a self-signed certificate will be generated in the same directory.

You may change these ports if you wish, or leave them as-is.

Web sockets are now used for an advanced interface which is available only if you are using a Dahua or Hikvision PTZ camera (further, the camera must support absolute positioning). You will also find these ports defined in the configuration file. The default web socket port for Camera Proxy is 44454.

Step 5

Create a rule allowing traffic on the selected port(s) in Windows Firewall and any other firewall you may have installed. TCP is the only protocol you need to open the ports for.

Step 6

Run Install_Service.bat as Administrator. You should be able to do this by right-clicking the file and choosing "Run as administrator".

Once the service is installed, it will start automatically after Windows is finished booting up.

Step 7

Since you just installed the service, it has not been started yet. Run Start_Service.bat as Administrator.

Step 8

Go to http://localhost:44456/admin in your web browser.

If you changed the port settings in step 3, you may need to modify this URL.

Step 9

Log in with user name admin and password admin



Once you have logged in, your account credentials are stored in a cookie in the current browser for 1 year, so if you log in from someone else's computer, be sure to clear the cookies afterward!

Step 10

Set up as many cameras and users as you like.



Step 11

Go to http://localhost:44456/all.html in your web browser. This is the all.html page located in the www_public subdirectory inside the CameraProxy directory. It shows all your cameras, and is a good example of how you can embed images from the application in a web page. You can modify any page in this directory or add new web content here. If you wish for any web content to be password-protected, place it in the www directory instead. You can then assign a minimum permission for each file in the admin interface.







Last edited Apr 14 at 2:56 PM by bp2008, version 14