• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!

TFS 0.X [0.4] Setting up a test-server on same vps

Snavy

Bakasta
Senator
Joined
Apr 1, 2012
Messages
1,249
Solutions
71
Reaction score
621
Location
Hell
I am trying to setup a test server on the same vps using different ports.
But i am not able to login.

I have tried to use 7171 as login port but that only displayed the characterlist from the main server.
When i changed to another login port it didn't even connect.

is there anything else I must change?

main server config:

loginPort = 7171
gamePort = 7172
statusPort = 7171
managerPort = 7171
adminPort = 7171

Test-server config:

loginPort = 7174
gamePort = 7173
statusPort = 7174
managerPort = 7174
adminPort = 7174

OS: Linux Debian 7
 
Set 1st one worldId = 0 and second one worldId = 1
And you don't have to change all the above ports only gamePort should be changed.
 
Set 1st one worldId = 0 and second one worldId = 1
And you don't have to change all the above ports only gamePort should be changed.

does it need to be 7171 for login port on both servers?

edit: (didnt see u updated the answer)
alright, will try now

edit 2:
@M0ustafa
I have done what you said, changed worldId to 1 both in config lua and for the character, but same result.
 
Ok then try it like this the first settings you had but with worldId changed
First server
Lua:
worldId = 0
loginPort = 7171
gamePort = 7172
statusPort = 7171
managerPort = 7171
adminPort = 7171
Second server
Lua:
worldId = 1
loginPort = 7174
gamePort = 7173
statusPort = 7174
managerPort = 7174
adminPort = 7174
 
Ok then try it like this the first settings you had but with worldId changed
First server
Lua:
worldId = 0
loginPort = 7171
gamePort = 7172
statusPort = 7171
managerPort = 7171
adminPort = 7171
Second server
Lua:
worldId = 1
loginPort = 7174
gamePort = 7173
statusPort = 7174
managerPort = 7174
adminPort = 7174

no luck with that either

Skärmavbild 2019-11-27 kl. 04.13.23.png
Skärmavbild 2019-11-27 kl. 04.14.04.png
 
Both doesn't connect? Can you connect if you only ran 1 server at a time? If you are using your domain name change it to your numeric ip on both
 
Edit inside your data\XML\servers.xml first server make it
XML:
    <server id="0" name="Nameofyourserver" versionMin="860" versionMax="860" address="127.0.0.1" port="7171"/>
Second server make it
XML:
    <server id="1" name="Nameofyourserver" versionMin="860" versionMax="860" address="127.0.0.1" port="7174"/>
You have to use port 7171 to login to your first server.
You have to use port 7174 to login to your second server.
If after doing the above still you can't connect try setting managerPort to 7171 on both servers.
 
Edit inside your data\XML\servers.xml first server make it
XML:
    <server id="0" name="Nameofyourserver" versionMin="860" versionMax="860" address="127.0.0.1" port="7171"/>
Second server make it
XML:
    <server id="1" name="Nameofyourserver" versionMin="860" versionMax="860" address="127.0.0.1" port="7174"/>
You have to use port 7171 to login to your first server.
You have to use port 7174 to login to your second server.
If after doing the above still you can't connect try setting managerPort to 7171 on both servers.

Hold on, im a bit confused now.

I literally made a copy of the main server and put it in another directory (tfs, data, config).
am i supposed to do it in a different way?
what is server.xml even doing?
 
servers.xml should be for people who want to host multi-worlds or multi-servers on same machine (not sure if it even works on 0.4) and yes you did it right it should work since the first edit but since it didn't I am trying to remember/figure out how it used to work on 0.4, You might also need different mySQL settings on both servers.

Edit : Anyways I ran out of ideas, if it still doesn't work then I hope someone else can help you out with this.
 
Back
Top