[cod] Multiple Servers on LAN

DLinkOZ dlinkoz at oesm.org
Tue Jan 6 13:17:34 EST 2004


You might also need an "up" at the end of your ifconfig line to bring the
virtual interface online.


----- Original Message ----- 
From: "Theo Macris" <theo at dsl-only.net>
To: <cod at icculus.org>
Sent: Tuesday, January 06, 2004 12:09 PM
Subject: RE: [cod] Multiple Servers on LAN


> This turns out to be easier than I thought it would be. I searched the
> newsgroups and found this, here it is for anyone else that may need it.
> I will let you know if this works later today. Thanks for the heads up
> Josh!
> Theo
>
> To assign the secondary address of 192.168.5.1 with a netmask of
> 255.255.255.0 to eth0 do:
> ifconfig eth0:1 192.168.5.1 netmask 255.255.255.0
>
> And a third of 10.1.1.1 netmask 255.255.0.0
> ifconfig eth0:2 10.1.1.1 netmask 255.255.0.0
>
> you can assign multiple aliases to a NIC, but I suggest only assigning
> a primary and one secondary, and get another NIC if you need more
> addresses.
>
>
> The correct way to add these as permanent (I'm assuming RH here)
> cd /etc/sysconfig/network-scripts
>
> edit  ifcfg-eth0:1 and put in the following syntax:
> DEVICE=eth0:1
> ONBOOT=yes
> BOOTPROTO=static
> IPADDR=192.168.5.1
> NETMASK=255.255.255.0
> GATEWAY=gw.ip.addr.here
>
> -----Original Message-----
> From: Josh Berry [mailto:josh at chickenmonkey.co.uk]
> Sent: Tuesday, January 06, 2004 7:15 AM
> To: cod at icculus.org
> Subject: RE: [cod] Multiple Servers on LAN
>
> Just to point you in the right direction, I have remembered enough to
> say that you can manually set up the second network card by doing (I
> think):
>
> ifconfig eth0:1 192.168.1.3 netmask 255.255.255.0 broadcast
> 192.168.1.255
>
> Note the eth0:1 - which binds it as a second address. You may than have
> to add a default gateway (but maybe not since this is LAN only) but
> unless you are using gentoo linux my ability to help ends there :(
>
> If you get it working you will want to add it into the net configuration
> scripts so that it binds at bootup but that is distro specific
>
> Josh
>
> -----Original Message-----
> From: Josh Berry [mailto:josh at chickenmonkey.co.uk]
> Sent: 06 January 2004 14:18
> To: cod at icculus.org
> Subject: RE: [cod] Multiple Servers on LAN
>
> Hi,
>
> You can bind multiple IP addresses to your NIC card so you could have:
>
> 192.168.1.2 & 192.168.1.3
>
> Bound to the card and both will then work if routed correctly. Since you
> then have 2 IP addresses you could run one server on each IP address
> (which I am pretty sure would fix your problem).
>
> Then, when you run the servers do:
>
> ./cod_lnxded +set net_IP 192.168.1.2 +exec server1.cfg
> ./cod_lnxded +set net_IP 192.168.1.3 +exec server2.cfg
>
> I don't know how to do this I am afraid (I did it once a couple of years
> back but have forgotten how) so you will need to get google'ing
>
> Josh
>
> -----Original Message-----
> From: Trevor Sherba [mailto:trevors1990 at hotmail.com]
> Sent: 05 January 2004 21:41
> To: cod at icculus.org
> Subject: RE: [cod] Multiple Servers on LAN
>
> i am running on an internal server (192.168.1.101) with router. i set
> port
> forwarding and set to UDP. where  u say +set net_IP whatever what should
> i
> put for whatever?
>
>
>
> >From: "Josh Berry" <josh at chickenmonkey.co.uk>
> >Reply-To: cod at icculus.org
> >To: <cod at icculus.org>
> >Subject: RE: [cod] Multiple Servers on LAN
> >Date: Mon, 5 Jan 2004 01:54:13 -0000
> >
> >If you are running them on an internal IP address (192.168 or whatever)
> >and fancy a bit of reading up you could bind two IP addresses to the
> >same NIC card and then run one server on each, you would just need to
> >add:
> >
> >+set net_IP whatever
> >
> >to each server when you start it.
> >
> >Josh
> >
> >-----Original Message-----
> >From: Theo Macris [mailto:theo at dsl-only.net]
> >Sent: 04 January 2004 22:56
> >To: cod at icculus.org
> >Subject: RE: [cod] Multiple Servers on LAN
> >
> >.exe? I thought this was the linux list serv? I tried that first btw
> and
> >it resulted in the same thing. Whichever starts first shows in the game
> >browser and the other doesn't. I corrected the error where they both
> >specify dedicated2.cfg, my bad-unfortunately it didn't fix anything :(.
> >They both show in HLSW or wherever I specify them, but LAN gamers tend
> >to be a bit on the lazy side, we can tell them get server IPs HERE, but
> >if they don't see it in the browser they don't play.
> >
> >Any other ideas? Anyone???
> >
> >What about the cd key auth? I kinda thought running '+set dedicated 1'
> >put you in LAN mode. It still is timing out if it cant get to the
> >internet.
> >
> >-----Original Message-----
> >From: James Landi [mailto:jim at landi.net]
> >Sent: Sunday, January 04, 2004 4:12 AM
> >To: cod at icculus.org
> >Subject: RE: [cod] Multiple Servers on LAN
> >
> >Personally I would not specify any port number.  Start your first
> >codmp.exe
> >and it will default to 28960, wait for that game to finish it's startup
> >before starting your second one.  It will increment your port to 28961.
> >
> >
> >I run two servers on one box without any problems by not specifying any
> >port
> >numbers.
> >
> >Does this box have only one nic?
> >
> >-Jim
> >Rudedog
> >Codadmin.com
> >Mohadmin.com
> >
> >-----Original Message-----
> >From: Theo Macris [mailto:theo at dsl-only.net]
> >Sent: Saturday, January 03, 2004 10:55 PM
> >To: cod at icculus.org
> >Subject: RE: [cod] Multiple Servers on LAN
> >
> >They are named differently
> >
> > >set sv_hostname "PDXLAN COD TDM PUBLIC"
> > >set sv_hostname "PDXLAN COD S&D PUBLIC"
> >
> >Default port is 28960 so it doesn't need to be specified.
> >This seems typical Q3 engine crap but i hope there is a work around.
> >I can connect to both via the console. Thanks for trying to help
> >though.
> >
> >
> >---- Original Message ----
> >From: fussballspieler87 at hotmail.com
> >To: cod at icculus.org
> >Subject: RE: [cod] Multiple Servers on LAN
> >Date: Sat, 03 Jan 2004 20:13:18 -0600
> >
> > >I don't know if this will solve the problem, but you're running the
> > >same
> > >configuration on both servers.  That means both will have the same
> > >name.
> > >I'd try specifiying the port on the first server +set net_port 28960
> > >
> > >-Josh Seaman
> > >
> > >
> > >>From: "Theo Macris" <theo at dsl-only.net>
> > >>Reply-To: cod at icculus.org
> > >>To: cod at icculus.org
> > >>Subject: [cod] Multiple Servers on LAN
> > >>Date: Sat, 3 Jan 2004 16:08:15 -0800
> > >>
> > >>I am the CoD admin for a 500 person LAN Party. http://www.pdxlan.com
> > >>I have installed 2 COD servers (SD/TDM)on 1 machine and only 1 will
> > >>show in the games 'Local' browser. They both appear to be working
> > >>correctly however.
> > >>
> > >>Here are my start scripts and configs, I changed net_port, name, and
> > >>server logs. Sorry, I enclosed everything so as to be as complete as
> > >>possible. If anyone is running 2 successful I'd like to know
> > >how/what
> > >>you did.
> > >>
> > >>START 1
> > >>[cod at klaypigeon1 cod]$ cat startsd.sh
> > >>#!/bin/sh
> > >>./cod_lnxded +set dedicated 1 +exec dedicated2.cfg +map_rotate
> > >>
> > >>START 2
> > >>[cod at klaypigeon1 cod]$ cat starttdm.sh
> > >>#!/bin/sh
> > >>./cod_lnxded +set dedicated 1 +set net_port 28970 +exec
> > >>dedicated2.cfg +map_rotate
> > >>
> > >>CONFIG 1
> > >>[cod at klaypigeon1 main]$ cat dedicated1.cfg
> > >>// Configuration created by
> > >>// FlyingWalrus - CoD ServerConfig Builder 1.02
> > >>
> > >>
> > >>// Contact Information
> > >>set sv_hostname "PDXLAN COD S&D PUBLIC"
> > >>set sv_motd "GL HF"
> > >>sets .Admin "{LLC}klaypigeon"
> > >>sets .Email "klaypigeon at .com"
> > >>sets .IRC ""
> > >>sets .Website ""
> > >>sets .Location "Portland, Oregon"
> > >>
> > >>
> > >>// Passwords
> > >>set g_password ""
> > >>set sv_privatePassword ""
> > >>set rconPassword "*******"
> > >>
> > >>
> > >>// Player Slots
> > >>set sv_maxClients "24"
> > >>set sv_privateClients ""
> > >>
> > >>
> > >>// Ping
> > >>set sv_minPing "0"
> > >>set sv_maxPing "200"
> > >>
> > >>
> > >>// Rate + FPS
> > >>set sv_maxRate "20000"
> > >>set sv_fps "20"
> > >>
> > >>
> > >>// MasterServers
> > >>set sv_master1 "codmaster.activision.com"
> > >>set sv_master2 ""
> > >>set sv_master3 ""
> > >>set sv_master4 ""
> > >>set sv_master5 ""
> > >>
> > >>
> > >>// Logfile
> > >>set logfile "1"
> > >>set g_log "dedicated_server.log"
> > >>set g_logsync "0"
> > >>
> > >>// Server Switches
> > >>set sv_pure "1"
> > >>set sv_allowDownload "0"
> > >>set sv_allowAnonymous "0"
> > >>set scr_allow_vote "1"
> > >>set g_gamespy "1"
> > >>set sv_cheats "0"
> > >>set scr_drawfriend "1"
> > >>set sv_forcerespawn "0"
> > >>set g_allowvote "1"
> > >>
> > >>// Friendly Fire
> > >>set scr_friendlyfire "2"
> > >>
> > >>
> > >>// Weapon Switches
> > >>set scr_allow_m1carbine "1"
> > >>set scr_allow_m1garand "1"
> > >>set scr_allow_thompson "1"
> > >>set scr_allow_bar "1"
> > >>set scr_allow_springfield "1"
> > >>set scr_allow_enfield "1"
> > >>set scr_allow_sten "1"
> > >>set scr_allow_bren "1"
> > >>set scr_allow_nagant "1"
> > >>set scr_allow_ppsh "1"
> > >>set scr_allow_nagantsniper "1"
> > >>set scr_allow_kar98k "1"
> > >>set scr_allow_mp40 "1"
> > >>set scr_allow_mp44 "1"
> > >>set scr_allow_kar98ksniper "1"
> > >>set scr_allow_fg42 "0"
> > >>set scr_allow_panzerfaust "1"
> > >>
> > >>
> > >>// Deathmatch Settings
> > >>set scr_dm_scorelimit "50"
> > >>set scr_dm_timelimit "20"
> > >>
> > >>
> > >>// Team-Deathmatch Settings
> > >>set scr_tdm_scorelimit "100"
> > >>set scr_tdm_timelimit "20"
> > >>
> > >>
> > >>// Search & Destroy Settings
> > >>set scr_sd_graceperiod "15"
> > >>set scr_sd_roundlength "5"
> > >>set scr_sd_roundlimit "0"
> > >>set scr_sd_scorelimit "7"
> > >>set scr_sd_timelimit "0"
> > >>
> > >>
> > >>// Behind Enemy Lines Settings
> > >>set scr_bel_alivepointtime "10"
> > >>set scr_bel_scorelimit "50"
> > >>set scr_bel_timelimit "30"
> > >>
> > >>
> > >>// Retrieval Settings
> > >>set scr_re_graceperiod "15"
> > >>set scr_re_roundlength "4"
> > >>set scr_re_roundlimit "0"
> > >>set scr_re_scorelimit "7"
> > >>set scr_re_timelimit "0"
> > >>set scr_re_showcarrier "1"
> > >>
> > >>set scr_motd "PDXLAN COD S&D admin-klaypigeon"
> > >>
> > >>// Gametype & Map-Rotation
> > >>set g_gametype sd
> > >>set sv_mapRotation "gametype sd map mp_brecourt gametype sd map
> > >>mp_carentan gametype sd map mp_dawnville gametype sd map mp_depot
> > >>gametype sd map mp_harbor gametype sd map mp_hurtgen gametype sd map
> > >>mp_pavlov gametype sd map mp_railyard gametype sd map mp_rocket
> > >>gametype sd map mp_powcamp"
> > >>
> > >>
> > >>CONFIG 2
> > >>[cod at klaypigeon1 main]$ cat dedicated2.cfg
> > >>// Configuration created by
> > >>// FlyingWalrus - CoD ServerConfig Builder 1.02
> > >>
> > >>
> > >>// Contact Information
> > >>set sv_hostname "PDXLAN COD TDM PUBLIC"
> > >>set sv_motd "GL HF"
> > >>sets .Admin "{LLC}klaypigeon"
> > >>sets .Email "klaypigeon at .com"
> > >>sets .IRC ""
> > >>sets .Website ""
> > >>sets .Location "Portland, Oregon"
> > >>
> > >>
> > >>// Passwords
> > >>set g_password ""
> > >>set sv_privatePassword ""
> > >>set rconPassword "*******"
> > >>
> > >>
> > >>// Player Slots
> > >>set sv_maxClients "24"
> > >>set sv_privateClients ""
> > >>
> > >>
> > >>// Ping
> > >>set sv_minPing "0"
> > >>set sv_maxPing "200"
> > >>
> > >>
> > >>// Rate + FPS
> > >>set sv_maxRate "20000"
> > >>set sv_fps "20"
> > >>
> > >>
> > >>// MasterServers
> > >>set sv_master1 "codmaster.activision.com"
> > >>set sv_master2 ""
> > >>set sv_master3 ""
> > >>set sv_master4 ""
> > >>set sv_master5 ""
> > >>
> > >>
> > >>// Logfile
> > >>set logfile "1"
> > >>set g_log "dedicated_server-TDM.log"
> > >>set g_logsync "0"
> > >>
> > >>// Server Switches
> > >>set sv_pure "1"
> > >>set sv_allowDownload "0"
> > >>set sv_allowAnonymous "0"
> > >>set scr_allow_vote "1"
> > >>set g_gamespy "1"
> > >>set sv_cheats "0"
> > >>set scr_drawfriend "1"
> > >>set sv_forcerespawn "0"
> > >>set g_allowvote "1"
> > >>
> > >>// Friendly Fire
> > >>set scr_friendlyfire "2"
> > >>
> > >>
> > >>// Weapon Switches
> > >>set scr_allow_m1carbine "1"
> > >>set scr_allow_m1garand "1"
> > >>set scr_allow_thompson "1"
> > >>set scr_allow_bar "1"
> > >>set scr_allow_springfield "1"
> > >>set scr_allow_enfield "1"
> > >>set scr_allow_sten "1"
> > >>set scr_allow_bren "1"
> > >>set scr_allow_nagant "1"
> > >>set scr_allow_ppsh "1"
> > >>set scr_allow_nagantsniper "1"
> > >>set scr_allow_kar98k "1"
> > >>set scr_allow_mp40 "1"
> > >>set scr_allow_mp44 "1"
> > >>set scr_allow_kar98ksniper "1"
> > >>set scr_allow_fg42 "1"
> > >>set scr_allow_panzerfaust "1"
> > >>
> > >>
> > >>// Deathmatch Settings
> > >>set scr_dm_scorelimit "50"
> > >>set scr_dm_timelimit "20"
> > >>
> > >>
> > >>// Team-Deathmatch Settings
> > >>set scr_tdm_scorelimit "100"
> > >>set scr_tdm_timelimit "20"
> > >>
> > >>
> > >>// Search & Destroy Settings
> > >>set scr_sd_graceperiod "15"
> > >>set scr_sd_roundlength "5"
> > >>set scr_sd_roundlimit "0"
> > >>set scr_sd_scorelimit "7"
> > >>set scr_sd_timelimit "0"
> > >>
> > >>
> > >>// Behind Enemy Lines Settings
> > >>set scr_bel_alivepointtime "10"
> > >>set scr_bel_scorelimit "50"
> > >>set scr_bel_timelimit "30"
> > >>
> > >>
> > >>// Retrieval Settings
> > >>set scr_re_graceperiod "15"
> > >>set scr_re_roundlength "4"
> > >>set scr_re_roundlimit "0"
> > >>set scr_re_scorelimit "7"
> > >>set scr_re_timelimit "0"
> > >>set scr_re_showcarrier "1"
> > >>
> > >>BVset scr_motd "PDXLAN COD S&D admin-klaypigeon"
> > >>
> > >>// Gametype & Map-Rotation
> > >>set g_gametype tdm
> > >>set sv_mapRotation "gametype tdm map mp_brecourt gametype tdm map
> > >>mp_carentan gametype tdm map mp_chateau gametype tdm map
> > >mp_dawnville
> > >>gametype tdm map mp_depot gametype tdm map mp_harbor gametype tdm
> > >map
> > >>mp_hurtgen gametype tdm map mp_pavlov gametype tdm map mp_powcamp
> > >>gametype tdm map mp_railyard gametype tdm map mp_rocket gametype tdm
> > >>map mp_ship"
> > >>
> > >>
> > >
> > >_________________________________________________________________
> > >Enjoy a special introductory offer for dial-up Internet access -
> > >limited
> > >time only! http://join.msn.com/?page=dept/dialup
> > >
> >
> >
> >
> >
> >
> >
> >---
> >Incoming mail is certified Virus Free.
> >Checked by AVG anti-virus system (http://www.grisoft.com).
> >Version: 6.0.547 / Virus Database: 340 - Release Date: 12/2/2003
> >
> >
> >---
> >Outgoing mail is certified Virus Free.
> >Checked by AVG anti-virus system (http://www.grisoft.com).
> >Version: 6.0.547 / Virus Database: 340 - Release Date: 12/2/2003
> >
> >
> >
>
> _________________________________________________________________
> Worried about inbox overload? Get MSN Extra Storage now!
> http://join.msn.com/?PAGE=features/es
>
>
>
> ---
> Incoming mail is certified Virus Free.
> Checked by AVG anti-virus system (http://www.grisoft.com).
> Version: 6.0.558 / Virus Database: 350 - Release Date: 1/2/2004
>
>
> ---
> Outgoing mail is certified Virus Free.
> Checked by AVG anti-virus system (http://www.grisoft.com).
> Version: 6.0.558 / Virus Database: 350 - Release Date: 1/2/2004
>
>
>
>





More information about the Cod mailing list