running 2 seperate machines on same IP

Support and queries relating to all previous versions of ZoneMinder
Locked
Solaris
Posts: 21
Joined: Sat Feb 03, 2007 2:07 am
Location: Idaho Panhandle - USA

running 2 seperate machines on same IP

Post by Solaris »

Howdy Everyone,

Hopefully this will be an easy fix---->

I have 2 seperate machines with 2 seperate LIVEcd ZM 1.22.3 installs. I can run them both at same time but can only connect to one machine locally or remotely even though the usernames and passwords are different.
I also have ports 80 and 443 opened for each seperate machine in my router setup.
By themselves, each machine works fine and connects remotely through internet - but I want to be able to run both on same network.
I dug aropund through the posts for a while and didnt seem to find a similar situation...

Thanks again for everyones help, Solaris
User avatar
cordel
Posts: 5210
Joined: Fri Mar 05, 2004 4:47 pm
Location: /USA/Washington/Seattle

Post by cordel »

Well this is really simple and easy to handle, There are a few options and I'll start with the simplist.
:arrow: Change the ports on the second machine. You can use any port you want as long as it's not a port that another service or machine is using. (ie 81, and 444 for example)
:arrow: you can setup one machine to capture all cameras. I realize that you might not have the resorces, but can be an option.
:arrow: Port forward from the first machine (I know it can be done but never done it my self and could be very complicated if you don't understand the working, and think it through very carefully).

Of course for any of these to work, each machine needs it own private IP (ie. 192.168.0.5 and 192.168.0.6)
portforward.com is a good resouse for this sort of thing.
Solaris
Posts: 21
Joined: Sat Feb 03, 2007 2:07 am
Location: Idaho Panhandle - USA

changing ports on ZM machine?

Post by Solaris »

Thanks for your quik answer Cordel, Is the changing of the ports on one of those machines hard? - as in How?
That does sound the easiest if I can do it...

Thanks again - Solaris

Oh and the reason I am using 2 machines is because one is going to be setting atop a pole, solar-powered and wirelessly bridged to rest of network - so far it works great on the ground...
User avatar
cordel
Posts: 5210
Joined: Fri Mar 05, 2004 4:47 pm
Location: /USA/Washington/Seattle

Post by cordel »

It's fairly simple.
First assumming that you don't have a desktop installed. If you do though you can install the apache gui and change the standart port there.

From command line you need to edit the apache config in /etc/httpd/conf/ (or /etc/apache2/conf/ depending on your distro) since this is a apache function (the file is either httpd.conf or apache2.conf depending on your distro) scroll down to the line that says
Listen 80
and change it to 81 and save the file.
Now back out one directory and cd into conf.d and edit ssl.conf. Same thing, look for the line that says Listen 443 and change it to 444 or 8443, what ever you desire. save the file.
Restart apache and your golden.
Solaris
Posts: 21
Joined: Sat Feb 03, 2007 2:07 am
Location: Idaho Panhandle - USA

its Livcd 1.22.3 install...

Post by Solaris »

Thanks Cordel,
I have the LIVEcd 1.22.3 installed with a regular desktop I guess. I used the LIVECD install because I am a dunce when it comes to fancy console commands...hehe
However I guess I better get consolin' - I'll follow your directions and see what happens.

But first I have to go install another router that got hit by lightning nearby. There was a storm last week that killed 2 routers, 3 computers and a few solar controls. Gotta have those surge suppressors installed!

Thanks again, I will write up the results of my tower project with all the hardware specs and whatnot soon when it is up and running, Solaris
User avatar
cordel
Posts: 5210
Joined: Fri Mar 05, 2004 4:47 pm
Location: /USA/Washington/Seattle

Post by cordel »

Oh boy, don't I know about that. November a storm here wiped out all but one of my machines out of seven. Invested in UPS's and ISO Bars now ;) I should have known better in the first place since I used to do tower work and had a tower get wacked while I was five feet from it :oops:

Any way, step by step:
Green = keystrokes
Indigo = Edit
  • Open console window
    :arrow: sudo vim /etc/httpd/conf/httpd.conf
    Scroll down with the arrows or faster PgDn then arrows to get the curser in the right place.
    Find Listen 80
    Press i for insert
    Change to Listen 81
    Esc Takes you out of insert mode
    :wq Enter
    The colon tells vi that commands will follow. w is to write the file. q quits the editor.

    :arrow: sudo vim /etc/httpd/conf.d/ssl.conf
    Scoll down and find Listen 443
    Press i to insert
    Change to Listen 8443
    Esc
    :wq Enter


    :arrow: /sbin/service httpd restart Enter
Done :D
Locked