NeverwinterConnections.com

   NeverwinterConnections.com
   Main Topics
   Server Configuration

   Two Servers On One LAN
Pages: 1  
   Author  Topic: Two Servers On One LAN  (Read 75 times)
Dane Bramage

Forum God


Last On: 12/05/11
View Profile
Message Player

United States

Posts: 2637
Two Servers On One LAN
Return To Top       

Alright... I think the subject says it all, but I shall repeat.

Is it possible to host two servers on one LAN? I know I can use different ports to direct traffic to the different servers... is it as easy as that? How does that effect port forwarding?

Anyone out there tried this? I ask for the up coming CON so that I can host the Welcome Inn and a mod a couple of times. Otherwise, I have to build the mod onto the Welcome Inn, and I don't want to do that.

I.P. Logged
Gulfwulf

Forum God


Last On: 02/12/12
View Profile
Message Player

United States

Posts: 4798

Return To Top       

Theoretically you should be able to if both servers use different ports. As for portforwarding, each server will need its own ip address and you will need to forward both server ports to their respective servers.

For example:

Server1: 192.168.1.2:5121
PF: 5121 -> 192.168.1.2

Server2: 192.168.1.3:5122
PF: 5122 -> 192.168.1.2

There's a slight chance that one or both of the servers may not show up on Gamespy due to the need to forward ports for Gamespy, I believe. Direct connect should work, though, and an easy way to test that is to load up the servers and then try using the direct connect option to log into them.

I.P. Logged
Dane Bramage

Forum God


Last On: 12/05/11
View Profile
Message Player

United States

Posts: 2637

Return To Top       

yeah... i figured as much.

it's been a while, so i'm rusty and not sure what needs to be sent where. aren't there specific ports for the DM client? also, it would take some tweaking of the player.ini file to set the proper ports for the client that logs in to look at the right ports... right?

regardless, it should be possible.

if so, then i'll move forward building something separate to run while still hosting the Welcome Inn on a diff server.

« Last Edit: on: Jun 26, 2008, 3:41PM » I.P. Logged
Gulfwulf

Forum God


Last On: 02/12/12
View Profile
Message Player

United States

Posts: 4798

Return To Top       

The dm client uses the same port the player and server clients use, so you should be fine there. You shouldn't need to tweak the player.ini file, but you will need to change the default port the servers use before you load up your modules. The standalone server program should have a port area where you can change it, I don't think it will let you after you load a module though. I would still test it first, DB, to make sure your forwarding is setup properly.

I.P. Logged
Dane Bramage

Forum God


Last On: 12/05/11
View Profile
Message Player

United States

Posts: 2637

Return To Top       

ya gotta change one of the ini files, i remember that much. just not sure which one.

i'll post it when i figure it out, and i'll certainly run a test well in advance.

I.P. Logged
Gulfwulf

Forum God


Last On: 02/12/12
View Profile
Message Player

United States

Posts: 4798

Return To Top       

Right. The port information is stored in the nwn.ini file for the stand-alone server program.

I.P. Logged
Dane Bramage

Forum God


Last On: 12/05/11
View Profile
Message Player

United States

Posts: 2637

Return To Top       

right... i knew that

damn it's been a long time... either that, or i'm just getting old.

« Last Edit: on: Jun 27, 2008, 12:43PM » I.P. Logged
Gulfwulf

Forum God


Last On: 02/12/12
View Profile
Message Player

United States

Posts: 4798

Return To Top       

Probably a little bit of both, Dane.

I.P. Logged
Dane Bramage

Forum God


Last On: 12/05/11
View Profile
Message Player

United States

Posts: 2637

Return To Top       

yeah... prolly right there, GW.

I.P. Logged
Victor Lazlo

Experienced User


Last On: 04/27/09
View Profile
Message Player

Canada

Posts: 20

Return To Top       

So I launch the two servers
5121 & 5122
But of course only one, the 5121 shows up in GameSpy Any idea how I can get both server to appear 

I.P. Logged
Gulfwulf

Forum God


Last On: 02/12/12
View Profile
Message Player

United States

Posts: 4798

Return To Top       

Did you:

1. Setup each computer with its own unique static ip address?

2. Forward port 5121 to one static ip and port 5122 to the other? If they both point to the same computer, then it won't work.

I.P. Logged
Victor Lazlo

Experienced User


Last On: 04/27/09
View Profile
Message Player

Canada

Posts: 20

Return To Top       

on Jan 9, 2009, 5:58 AM, Gulfwulf wrote:
Did you:

1. Setup each computer with its own unique static ip address?

2. Forward port 5121 to one static ip and port 5122 to the other? If they both point to the same computer, then it won't work.


I did a lot of research on using two computers to run two server but linking the two server vaults was a nightmare

The easy solution was running the two servers in one computer. That way the server vault is only one for both servers and it eliminate the need for synchronizing two different server vaults.

I got the recommendation for a quad cpu behind a gigabyte router to do this so that is what I got.

I configure the router (thanks to another post in this wonderful forum) and got the server to show in GameSpy

But as I commented above If I launch the two servers, they do show up but they only link to the 5121 port

Direct Connect works fines and does link to 5121 and 5122 just fine.

any ideas?

I do own two statics IP so theoretically I could use both but not sure how I would configured the DIR-655 router

I.P. Logged
Gulfwulf

Forum God


Last On: 02/12/12
View Profile
Message Player

United States

Posts: 4798

Return To Top       

The server configuration program should have a spot that allows you to type in the port it should use. Are they both set to 5121 or is one set to 5122? If both ports are forwarded to your computer's ip, then both should show up in Gamespy unless it's a Gamespy issue where it won't accept two servers from the same ip address. I don't know the inner workings of it, so I don't know if that's the issue or not.

I.P. Logged
Pages: 1  
Moderators: Rizzen, Gilaun, Shinji, Garnak, J'Dai Voisin, Lazybones, Ochobee, Eliandi
   NeverwinterConnections.com
   Main Topics
   Server Configuration

   Two Servers On One LAN

 
Copyright © 2002 Shawn Schultz. All rights reserved.
All trademarks are properties of their respective owners. Read our Terms of Use and our Privacy Policy.