• 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!

Linux Connect 2 hosts to 1 server

Bloody-War

New Member
Joined
Feb 9, 2016
Messages
88
Reaction score
1
hello guys.

I wanna know if is possible connect 2 hosts to 1 server for example 1 host in canada and other in frane for no get lagg in all world.

If is possble how to do..

Please help me with that.
 
Actually I have used a european dedicated server as main server and got another linux based dedicated from canada reversed to the EU dedicated.
US player should have less lag then because their own connection is not strong enough to send and receive data that fast, the canadian dedicated had a 100 mbit connection instead..
Thats the closest thing you could do I guess..

http://realtibia.org
and
http://us.realtibia.org

both have different IP's but lead to the same dedicated
 
Actually I have used a european dedicated server as main server and got another linux based dedicated from canada reversed to the EU dedicated.
US player should have less lag then because their own connection is not strong enough to send and receive data that fast, the canadian dedicated had a 100 mbit connection instead..
Thats the closest thing you could do I guess..

http://realtibia.org
and
http://us.realtibia.org

both have different IP's but lead to the same dedicated

Yes you just described a reverse proxy.
 
Well as far as websites are concerned it obviously is possible as a lot of people us CDNs. However I have never setup a reverse proxy for an OTS although i can imagine it to work just fine^^
 
Actually I have used a european dedicated server as main server and got another linux based dedicated from canada reversed to the EU dedicated.
US player should have less lag then because their own connection is not strong enough to send and receive data that fast, the canadian dedicated had a 100 mbit connection instead..
Thats the closest thing you could do I guess..

http://realtibia.org
and
http://us.realtibia.org

both have different IP's but lead to the same dedicated
so you can help me how to setup proxy? on my server please!

help to setup proxy please!
 
Last edited by a moderator:
I've setup the 'CDN' for OTS once just for testing purposes.
1. Just bought VPS that got a good connection to my server
2. Created GRE tunnel between them.
3. Created iptables & iproute rules to route the traffic correctly.
4. Edited login server of TFS to send the other IP if the player is connecting from specific countries.

However, I didnt get a big advantage from that.
 
I've setup the 'CDN' for OTS once just for testing purposes.
1. Just bought VPS that got a good connection to my server
2. Created GRE tunnel between them.
3. Created iptables & iproute rules to route the traffic correctly.
4. Edited login server of TFS to send the other IP if the player is connecting from specific countries.

However, I didnt get a big advantage from that.

can u send any tutorial abut this please i dont have idea whats that and how to create!

and i have have buyed extra vps in canada
 
can u send any tutorial abut this please i dont have idea whats that and how to create!

and i have have buyed extra vps in canada

I gave you the whole know-how bro. Try to google and I am sure you can do it in couple of days and become smarter one. :)
 
I gave you the whole know-how bro. Try to google and I am sure you can do it in couple of days and become smarter one. :)
thank you just searching :(

I gave you the whole know-how bro. Try to google and I am sure you can do it in couple of days and become smarter one. :)
i dont understand last.
4th point can you give an example?
 
Last edited by a moderator:
i dont understand last.
4th point can you give an example?

You need to edit this https://github.com/otland/forgottenserver/blob/master/src/protocollogin.cpp#L92

You can use GeoIP library to get the player country or you can make player choose the preffered server in your webpage.
The second option can be done like:
Code:
if (account.country == "BR") {
output->addString("123.134.45.45");
} else {
output->addString(g_config.getString(ConfigManager::IP));
}

Of course you have to add new variable to account and load it from DB.
 
You need to edit this https://github.com/otland/forgottenserver/blob/master/src/protocollogin.cpp#L92

You can use GeoIP library to get the player country or you can make player choose the preffered server in your webpage.
The second option can be done like:
Code:
if (account.country == "BR") {
output->addString("123.134.45.45");
} else {
output->addString(g_config.getString(ConfigManager::IP));
}

Of course you have to add new variable to account and load it from DB.

And if i need to buy dedicate server where do you recommend the location.
France or canada.
For get less lags from all countries.
 
Back
Top