Jump to content

2 dedicated servers, one machine only see one in client


Recommended Posts

While I haven't had any progress on getting these running on my Centos 6 rack server, I have been having a great time running and tweaking them on their test box, an Ubuntu machine.. Here's my dilema..

I have two servers set up, and running properly.  I did end up using two separate tokens as I thought originally that was the problem.  One server (A) is running survival mode.  The second (B) is running endless mode.  Both servers have a main world and a cave (so yes, 4 total servers) all with unique ports etc..

When I click on browse servers, BOTH are visible, and I can successfully connect to both of them.

When I filter for LAN only though, only (A) shows up, whether it's on Survival specifically or ALL.  In fact the second "survival" is highlighted in the lan game browser, it appears - No need to refresh or anything.

When I first started messing around, I had some port conflicts (didn't realize how many ports are required and missed a few) - Oddly, at that time, with whatever mistakes I made, when I would go to the endless game type and click refresh, my endless server WOULD show up!  At some point while fixing the port errors it stopped showing up on LAN.  For the record, it never just 'showed' up on the ALL tab of LAN.. 

Anyway, while it can be accessed via the regular internet filter (shows both, side by side as their names are similar) for ease of my kids and I getting on, I'd like to figure out why the LAN filter isn't seeing both..  Any ideas?

I do have the ports written out on paper for every single port across both servers, with master and a cave on both, if need be.  I can assure you that every single port is different.  I will admit that not every port has been sent to the routers firewall - Maybe not required for every port (would like to know though, currently have 10 port entries in router JUST for these "two" servers rofl) but well, 1) they ARE both seen and accessible over the internet so obviously working and 2) router NAT'd ports would have absolutely nothing to do with LAN access, but again, the routed ports are the same for both servers..  So even if for some reason it DID matter, I still should see both because I can see one of them..

 

Ideas welcome!  Thanks for your time..

Still no resolution, just an update on what I've tried and found...

I saw here that a specific port has to be in a specific range in order for LAN to see servers, and that number was outside of my range.  So I added ten exactly to every endless server from the survival server.  Started the endless up (survival already running) and now every time I click refresh on the LAN only client setting, it switches between them, but does NOT list both at once..  And even then, endless shows up more often, not every-other like I thought originally..  And when I click to search by game type often now the survival one does not show up (no matter what token the second server is using).

So I then thought, well, when I started this out, I gor a second token key for the second server.  I thought, maybe since they are LAN and on the same machine, the token needs to be the same.. So I renamed the endless token and coped the token file from the survival server.  No difference.

Internet still see's both servers, and both are connectable through the internet, as well as whichever one decides to show up on the LAN browser.  Not sure if there's still another setting that isn't happy.  Looked through the post I linked above for any other mentions of you know, this has to be this for LAN to work, didn't notice anything else jump out at me..  Still welcoming ideas and suggestions :)

Here are my exact settings:

Cluster.ini

the config line		Survival parameter		Endless Parameter

master_port 			 10889							10899

Master/server.ini

master_server			27018							27028
server_port				  11000							   11010
authentication_port		8768							8778

Caves/server.ini

server_port					11001							11011
master_server_port		27019							27029
authentication_port		8769							   8779

 

Huh. I just (somewhat) replicated your setup using Docker running locally on my Ubuntu PC instead of a server. Even thought the setup is a bit different, the goal is the same: to have 2 servers (both with caves, so 4 shards in total) running at the same time in the same machine. I even named them A and B, being them survival and endless, respectively. 

To my surprise... I got the exact. same. result:shock: Both are connectable / playable (even migration between shards Master <-> Caves works fine); Both are listed in the "Online Servers" list, and... they toggle "which one" get's displayed on "LAN Servers" at a seemingly random fashion. Especially given that there were (quite many) differences between our setups (where the servers are running from, ports chosen, etc), seeing the exact same result makes me wonder. Did we both make the same mistake - or maybe this is an actual limitation, either on the game client or game servers?

image.thumb.png.250032e64575edb49a3c502b28a41431.png

Quote

 

I chose to leave the A server with the default ports, while overriding all ports on server B.

 

image.thumb.png.4944e4a5c332f8c3567e2df38c0ffd59.png

Quote

Online Servers: both are listed

image.thumb.png.d457223b178810121b58dc8b2ddcd1dd.png

image.thumb.png.d645d329d1d9a61506161bab7e729387.png

Quote

LAN Servers: randomly showing only A or only B

I'm quite intrigued by this now :? Will try some more ports tweaking and see if there's any way around it to be found. At least on the bright side it's not something that prevents playing the game (even though it's quite annoying)! :D

Yep, glad to see you had the exact same experience as we did here, lol. 

I definitely think this is a bug/flaw with the client at this time.  I'm going to do another test now that I know it's not just me here tonight, and install teh dedicated server on yet another (far less powerful) Ubuntu box I have here at the house to see how the client reacts to two seperate dedicated machines on completely different IP addresses instead of on the same box.

One thing that (still) catches my eye was the comment on that server options thread about having to be confined to a specific port range for LAN servers to work, coupled with mention somewhere else of leaving about 10 numbers between the ports you choose.  I remember earlier in my trials one of the many ports I did in fact have set close (was doing 1 up from the 1st servers settings) and it did show conflicts when I would try and start the second server, saying ports were in use.  Makes me think that there might be something to that, like the game is utilizing ports not specified.  I didn't get any of those errors when I stuck to the port +10 recommendation though..  Just throwing all that out there..  Maybe a dev will read/comment on our dilema here ;)

 

 

Archived

This topic is now archived and is closed to further replies.

Please be aware that the content of this thread may be outdated and no longer applicable.

×
  • Create New...