Server / Client

Support and queries relating to all previous versions of ZoneMinder
Dreamer
Posts: 43
Joined: Sat Sep 17, 2005 9:14 am

Server / Client

Post by Dreamer »

I've got 2 PCs both installed with 1.21.3, both connected to diferent cameras. One PC is just the box i.e. no monitor, keyboard etc.

How can I add the cameras from the 'box only PC' to the main PC, so that I can view / edit them? i.e. How do I set up a ZM Server / Client system?
And could I just keep adding other 'Box only clients'?


Dreamer
jameswilson
Posts: 5111
Joined: Wed Jun 08, 2005 8:07 pm
Location: Midlands UK

Post by jameswilson »

on your 'server' add monitors to it as remote cameras. they will work as if they were ip cams. The above will only work with static cameras as the ptz commands will Not be repeated on.
James Wilson

Disclaimer: The above is pure theory and may work on a good day with the wind behind it. etc etc.
http://www.securitywarehouse.co.uk
Dreamer
Posts: 43
Joined: Sat Sep 17, 2005 9:14 am

Post by Dreamer »

If I have 2 cameras on the Client, what is the correct format on the Server;

Remote Host Name Client_Cam_2
Remote Host Port 80
Remote Host Path http://192.168.2.55/zm/zm.php?username= ... ogin&mid=1


Dreamer
jameswilson
Posts: 5111
Joined: Wed Jun 08, 2005 8:07 pm
Location: Midlands UK

Post by jameswilson »

on the server create a new monitor

alter the source page
function = monitor
source type = remote

Source tab
remote host name ip of your server =eg 192.168.0.1
path = /cgi-bin/zm/nph-zms?mode=jpeg&monitor=1&scale=100&maxfps=5&user=user&pass=pass

modify monitor number to suit and user and pass
remote image colours = colour or mono dependant upon source
width and height must match remote zm box

repeat for other monitors

James
James Wilson

Disclaimer: The above is pure theory and may work on a good day with the wind behind it. etc etc.
http://www.securitywarehouse.co.uk
Dreamer
Posts: 43
Joined: Sat Sep 17, 2005 9:14 am

Post by Dreamer »

Many thanks James; the speed of your reply - incredible!!


Dreamer
jameswilson
Posts: 5111
Joined: Wed Jun 08, 2005 8:07 pm
Location: Midlands UK

Post by jameswilson »

luck mate thats all
James Wilson

Disclaimer: The above is pure theory and may work on a good day with the wind behind it. etc etc.
http://www.securitywarehouse.co.uk
Dreamer
Posts: 43
Joined: Sat Sep 17, 2005 9:14 am

Post by Dreamer »

Doesn't seem to work.

Should the path be /var/www/cgi-bin . . . . . . .



Also, is it possible to access both the Server & Client web interface from the Net? Do I need to set the Client Apache Server to monitor a diferent port than 80 in my Router?


Dreamer
jameswilson
Posts: 5111
Joined: Wed Jun 08, 2005 8:07 pm
Location: Midlands UK

Post by jameswilson »

yeah if you want to do that you will need to put the web server on different ports, and set the port forwarding to suit.

Those paths should work but to be sure load up the live vie of just one monitor and check the path to the images, i think that ctu core uses a slightly different path, than other distros.

Is the box accesable if yu give me login rights temp i will get you the correct path
James Wilson

Disclaimer: The above is pure theory and may work on a good day with the wind behind it. etc etc.
http://www.securitywarehouse.co.uk
Dreamer
Posts: 43
Joined: Sat Sep 17, 2005 9:14 am

Post by Dreamer »

Not at home at the moment so cannot get access to it.

How do I set Apache to operate on a diferent port?
jameswilson
Posts: 5111
Joined: Wed Jun 08, 2005 8:07 pm
Location: Midlands UK

Post by jameswilson »

im not sure how to do it properly i use webmin and it asks you what ports to listen on, just stick one on 80 and the other on 8080
James Wilson

Disclaimer: The above is pure theory and may work on a good day with the wind behind it. etc etc.
http://www.securitywarehouse.co.uk
Dreamer
Posts: 43
Joined: Sat Sep 17, 2005 9:14 am

Post by Dreamer »

This still isn't working, and I think I've found out why.

Router : 192.168.3.1
XP : 192.168.3.50
Server : 192.168.3.245
Client : 192.168.3.145

PINGing from everywhere to everywhere works EXCEPT pinging to the client. For some reason the Client PC can access the Internet, can ping every other PC on the Intranet but NO local PC can ping 192.168.1.145


Why is this when 192.168.1.145 can obviously access everything?

Is it because 2 PCs have the same Hostname? (zm.local.domain)
Dreamer
Posts: 43
Joined: Sat Sep 17, 2005 9:14 am

Post by Dreamer »

Firewall

I didn't know that a Firewall stops pings!!
jameswilson
Posts: 5111
Joined: Wed Jun 08, 2005 8:07 pm
Location: Midlands UK

Post by jameswilson »

is this a typo
but NO local PC can ping 192.168.1.145
as you state previously its on 192.168.3.145

I have zm machines with the same hostname and i can still ping them

what happens when you remove the other machine (the zm box) you can ping from the network can you ping the client then.

You havnt got a firewall on this client have you?
James Wilson

Disclaimer: The above is pure theory and may work on a good day with the wind behind it. etc etc.
http://www.securitywarehouse.co.uk
Dreamer
Posts: 43
Joined: Sat Sep 17, 2005 9:14 am

Post by Dreamer »

Yes, sorry it's a typo. It's 192.168.3.145


I've removed all Firewalls (!!), re-configured the Router to 192.168.1.1, re-configured all my PCs to 192.168.1.5 / 145 / 245 and still cannot get a feed from the client. The source is coloured orange which shows it's valid - but no video. Any ideas?
Dreamer
Posts: 43
Joined: Sat Sep 17, 2005 9:14 am

Post by Dreamer »

These are my settings;

Source Type : Remote
Remote Host Name : 192.168.1.145
Remote Host Port : 80
Remote Host Path : /cgi-bin/zm/nph-zms?mode=jpeg&monitor=1&scale=100&maxfps=5


I've removed User Authentication
Locked