#1 2024-05-17 07:24:04

Rashnu
Player
United States
Reputation: +3
Registered: 2024-05-16
Posts: 6
Windows 10 Firefox 126.0

two servers on a single ip address question

Ok so i have setup two Bf1942 server here at home on my vm and am having a little trouble with getting one listed on the in game browser..
is the server list only listening on 23000,, for the server list or does it listen in the range of 23000 to 23009 ... i was thinking back in the old days it listened in a range but really cant remember..

So any way here is my setup 
server 01  windows box 192.168.1.100 :14567  listening port 23000 fwd to 23000
server 02 Linux box 192.168.2.101 :14568  listening port 23001 fwd to 23001

server 1 will show up on the list but server two will not,  if i put the second server at 23000 fwd to 23001 it still will not work.. unless i disable the port forward to the first server ,, then it will work,,,,,so I am puzzled on how to get the second server listed ... not sure if i have to DMZ the second server or not ,,, and not sure if i can even DMZ the second server since its a virtual machine. not sure how that would work
But any way , i don't really need two bf server , but was just board and wanted to setup a Linux box since its been forever since i had one running anyway..

so any input would be greatly appreciated

Thanks
Rash

Offline

    Positive reputation 0   Negative reputation 0

#2 2024-05-18 13:03:16

bud
maestro
Reputation: +1842
Location: shangri la
Registered: 2012-07-07
Posts: 3,960
Website
Windows 10 Firefox 126.0

Re: two servers on a single ip address question

i mostly use Virtualbox so im not sure about other software, but depending on the network settings used (bridged or nat) one can specify the ports needed in network settings.

Hidden text

virtual-ports.jpg

Offline

    Positive reputation 0   Negative reputation 0

#3 2024-05-18 19:45:27

Rashnu
Player
United States
Reputation: +3
Registered: 2024-05-16
Posts: 6
Windows 10 Firefox 126.0

Re: two servers on a single ip address question

I do have port forward setup in my router for the the virtual machines , but i don't think that you can port forward the same port to, to different internal IP's.

setup in router is 

server01 windows   external port 23000   port forward  to internal IP    192.168.1.100 port 23000 this one works
server01 Linux         external port 23000   port forward  to internal IP    192.168.1.101 port 23001 this one does not work ,,, i do have server 02 listen port set to 23001 in the server file.

so not sure if it is a limitation of my router , or if that network port forward rule is just invalid .. but with the current setup only one server will show up on the master.bf1942.org...
will keep playing with it to see how to get it to work.. think i may need to add another network card to my router and set it as DMZ to see if that will work... just will need to read on how to do that ....
Thank you

Rash

Offline

    Positive reputation 0   Negative reputation 0

#4 2024-05-19 08:10:54

Rashnu
Player
United States
Reputation: +3
Registered: 2024-05-16
Posts: 6
Windows 10 Firefox 126.0

Re: two servers on a single ip address question

ok i have  found out it is not possible to port forward 1 port to two different internal IP addresses...
so my question is ,, is it possible to run 2 instances of bf1942 on a single Linux box.. i have been trying it out tonight but, i can get one up and running but when i  try and start the second server it tells me that it fails to bind socket....

I have changed all ports but still gives me the failed to bind socket error..

Server o1 192.168.2.100:14567  this one works
server 02 192.168.2.100:14568 this one fails

i have setup two directory's to keep them separate
server one is setup in bf1942 dir
server two is setup in bf1942_2 dir

any info and help would be greatly appreciated...

also as a side note when i start bfsm on the Linux box ,, it return a list and says internal error but goes ahead and load and start listing but its strange that it roll up a bunch of internal error ..

Thanks
Rash

Offline

    Positive reputation 0   Negative reputation 0

#5 2024-05-19 13:27:49

bud
maestro
Reputation: +1842
Location: shangri la
Registered: 2012-07-07
Posts: 3,960
Website
Windows 10 Firefox 126.0

Re: two servers on a single ip address question

Do you have the manual? Server Manager 2.0 Users Guide https://files.lonebullet.com/battlefiel … sm20ug.zip?

Hidden text

servermanagerports.jpg

Offline

    Positive reputation 0   Negative reputation 0

#6 2024-05-19 14:46:47

tuia
BFSoldier
Portugal
Reputation: +1152
Location: Lisbon
Registered: 2012-02-20
Posts: 6,412
Website
Windows 7 Chrome 109.0

Re: two servers on a single ip address question

Make sure you don't share any port between server instances and check if port forwarding is correctly set, for example, in this website: https://canyouseeme.org

Offline

    Positive reputation 0   Negative reputation 0

#7 2024-05-20 01:51:01

Rashnu
Player
United States
Reputation: +3
Registered: 2024-05-16
Posts: 6
Windows 10 Firefox 126.0

Re: two servers on a single ip address question

ok ty for posting the bfsmd config PDF was very helpful now have setup two instance of bfserver up running on a virtual Linux box but am still running into the same wall as before i can only get one server to list on the server list.
Server 01 is ext ip is xxx.xxx.x.xxx port fwd to  192.168.1.100:14567 
listen port 23000  fwd to internal port 23000  it will list on the masterlist

server 02 is ext ip xxx.xxx.x.xxx port fwd to 192.168.1.100:14568
listen port 23001 fwd to internal port 23001 it will not list on the masterlist

starting to think that maybe this can not be done unless i have a DMZ zone but not sure .
i know there has got to be a way to do it there are servers listed on the master list with the same ip just diff game ports...

Oh well will keep banging head till it hurts  or i figure it out... smile

Would like to thank all of you that has helped me so far ....
will keep researching
Thank You
Rash

Offline

    Positive reputation 0   Negative reputation 0

#8 2024-05-20 12:49:20

bud
maestro
Reputation: +1842
Location: shangri la
Registered: 2012-07-07
Posts: 3,960
Website
Windows 10 Firefox 126.0

Re: two servers on a single ip address question

Do you have any "virtual server" setup in your router?

Hidden text

virtualserver.jpg

Offline

    Positive reputation 0   Negative reputation 0

#9 2024-05-21 08:12:22

Rashnu
Player
United States
Reputation: +3
Registered: 2024-05-16
Posts: 6
Windows 10 Firefox 126.0

Re: two servers on a single ip address question

Nope I'm using Untangle ,, it only has port forwarding .

Offline

    Positive reputation 0   Negative reputation 0

Board footer