multiple servers on one machine

If you've had any problems with Nexuiz, or would like to report bugs, post here.

Moderators: Nexuiz Moderators, Moderators

multiple servers on one machine

Postby Fuddl » Wed Oct 10, 2007 9:09 pm

hi there!

i plan to set up a bunch of nexuiz servers on a machine with a single network card for a lan-party, but i ran into some trouble:

if nexuiz servers are listening on all ip addresses/all network interfaces, they happily select different listening ports to listen for connection automatically, but only the first server which is listening on nexuiz' default server port shows up in clients' in-game server browsers.

when i apply a bunch of virtual network cards with different ip addresses and have each server bind to a separate ip address, listening on the default port, none of these nexuiz servers appear in the in-game server browsers.

is there any known workaround for at least one of the above scenarios, so that all servers on that single machine appear in the in-game browser? (i'd like to avoid setting up virtual machines ;) )

cheers - fuddl
Fuddl
Member
 
Posts: 36
Joined: Sat May 06, 2006 8:59 pm
Location: Germany, Mfr

Postby John Galt » Tue Oct 16, 2007 9:37 pm

I just set them up on different ports, 26000 - 26003 for example. I also use the dedicated server and configure it through the server.cfg -- all my servers show up on the game browser.

Not sure if that's doable with the GUI. I suspect it is. Changing the port should be all you need. No need to fool around with separate IPs or anything. I can't imagine using virtual machines for that -- imagine the load :)
cat /dev/urandom > /dev/mem
John Galt
Alien
 
Posts: 166
Joined: Thu Jul 19, 2007 9:20 pm
Location: Washington, DC

Postby Fuddl » Wed Oct 17, 2007 6:48 am

do you have the servers register at the master server (sv_public = 1)? that would explain to me why your servers apper in the game browser. or is there perhaps a config switch i don't know about?
in my case there's no internet connection available, so the servers cannot register at the master server and clients can't ask it.
Fuddl
Member
 
Posts: 36
Joined: Sat May 06, 2006 8:59 pm
Location: Germany, Mfr

Re: multiple servers on one machine

Postby KadaverJack » Wed Oct 17, 2007 10:23 am

Fuddl wrote:when i apply a bunch of virtual network cards with different ip addresses and have each server bind to a separate ip address, listening on the default port, none of these nexuiz servers appear in the in-game server browsers.

How's that supposed to work? With just one physical network interface, all servers on virtual interfaces would get a different port via nat unless i'm missing something here...

(i'd like to avoid setting up virtual machines ;) )

VMs would have the same problem.

in my case there's no internet connection available, so the servers cannot register at the master server and clients can't ask it.

If there's no internet connection available you could just run your own dpmaster.
KadaverJack
Site admin and forum addon
 
Posts: 1102
Joined: Tue Feb 28, 2006 9:42 pm

Postby Willis » Thu Oct 18, 2007 11:21 pm

If this is on a lan, you can setup your TCP/IP settings to give the machine multiple IP address manually, from there, launch each game with -ip 192.168.0.x (adjust accordingly) which will leave the default port at 26000 and give each server a unique IP so each will show when you go to the game browser.

The game browser does not require sv_master for lan games as I recall, it just does a subnet scan for the default port.
--Willis
Willis
Site Admin
 
Posts: 168
Joined: Tue Feb 28, 2006 7:00 pm
Location: Wisconsin, USA

Postby Fuddl » Sat Oct 20, 2007 1:14 pm

@KadaverJack: i don't know how it's implemented (NAT, whatever), but you can set up a bunch of ip addresses for an ethX interface. since kernel 2.6 (afaik) you can also set up a bunch of tun/tap devices and use a software bridge to stuff them together. that bridging-thing is easy to set up and works fine for two virtual machines which are connected to the LAN via bridged tun/tap devices.

@Willis:
that's what i tried, but as soon as i give the -ip XYZ arguement, that server doesn't show up in the game browser. using the connect-command from the in-game console still works to connect to the server. so i think, i must be doing something wrong...
Fuddl
Member
 
Posts: 36
Joined: Sat May 06, 2006 8:59 pm
Location: Germany, Mfr


Return to Nexuiz - Support / Bugs

Who is online

Users browsing this forum: No registered users and 1 guest

cron