Jump to content

How to run multiple dedicated servers on the same Linux


Recommended Posts

I use docker to build a dedicated server that works well, but my ECS configuration is very high, so how do I run multiple dedicated servers on this server? Klei seems to have requirements for the dedicated server port. How can I solve the port problem?

Link to comment
Share on other sites

You can just run multiple servers on the same machine by assigning them different ports. It works just fine.

Keep in mind that both Overworld and Caves shards each have to have their individual port, and each Cluster needs one port for the shards to communicate over. For example:

Spoiler

Cluster/Server1:

cluster.ini

[GAMEPLAY]
game_mode = survival
max_players = 64
pvp = false
pause_when_empty = true


[NETWORK]
cluster_description = The first of multiple servers
cluster_name = My First Server
cluster_intention = cooperative
cluster_password = <your PW>


[MISC]
console_enabled = true


[SHARD]
shard_enabled = true
bind_ip = 127.0.0.1
master_ip = 127.0.0.1
master_port = 10906
cluster_key = MyKey

--------------------------

Master server.ini

[NETWORK]
server_port = 10999


[SHARD]
is_master = true


[STEAM]
master_server_port = 10906
authentication_port = 8768


[ACCOUNT]
encode_user_path = true

--------------------------

Caves server.ini

[NETWORK]
server_port = 11000


[SHARD]
is_master = false
name = Caves

 

[STEAM]
master_server_port = 10906
authentication_port = 8769


[ACCOUNT]
encode_user_path = true

 

Cluster/Server2:

cluster.ini

[GAMEPLAY]
game_mode = survival
max_players = 64
pvp = false
pause_when_empty = true


[NETWORK]
cluster_description = The second of multiple servers
cluster_name = My Second Server
cluster_intention = cooperative
cluster_password = <your PW>


[MISC]
console_enabled = true


[SHARD]
shard_enabled = true
bind_ip = 127.0.0.1
master_ip = 127.0.0.1
master_port = 10907
cluster_key = myKey

--------------------------

Master server.ini

[NETWORK]
server_port = 11001


[SHARD]
is_master = true


[STEAM]
master_server_port = 10907
authentication_port = 8768


[ACCOUNT]
encode_user_path = true

--------------------------

Caves server.ini

[NETWORK]
server_port = 11002


[SHARD]
is_master = false
name = Caves

 

[STEAM]
master_server_port = 10907
authentication_port = 8769


[ACCOUNT]
encode_user_path = true

Then you'll just run the same startup script pointing to the different clusters.

Link to comment
Share on other sites

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...