• 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!
  • 2026 staff recruitment is open! Check it out and consider applying!

Website & Server on diff. IPs?

kito2

www.masteria.net
Joined
Mar 9, 2009
Messages
3,764
Solutions
1
Reaction score
227
Location
Chile, Santiago
Hey all,

It is recommendable to have your website on a host and run your server on another dedicated? Or just run everything on the same dedicated?

What do you think, leave your comment.
 
It all depends on how much your server can handle.
If you have a very high populated server, I'd get a server for hosting the website and database on and another for the server.
I remember when I had a high populated server before, around 400 players online and we had everything on the same server, so its fine to keep it that way as well.
 
The point is if they attack the website host, the database can collapse even when the server go all fine, and then it can't connect to the database making saving errors...
 
You have a point there, kito2. Maybe it would be worth to make a proxy on the website receiving and sending the server packets to the player, this way server IP cant be seen and you can put mysql in there
 
Last edited:
If you are smart you will build your server like this

Website + Login Server on one smaller dedicated server
Gameserver + Database on your main dedicated.

And a VPN static route between those to for secure packet transfers.

This way will remove the possibility for script kiddies to DDoS you also since the IP you give out is the Website/Loginserver only.

I've used this myself, and you need some special MySQL settings other then that its pretty easy.
 
Website + Login Server on one smaller dedicated server
Gameserver + Database on your main dedicated.

This way you hide your gameserver IP, but people can use "command console" to use "netstat -n" and see current conecctions to get you mainserver IP.

The only way to hide this is to change the gameplay port from 7171 to some port which could be unsuspicious.

And a VPN static route between those to for secure packet transfers.

What do you mean by that, how it works and how to do it, any references?
 
If you are smart you will build your server like this

Website + Login Server on one smaller dedicated server
Gameserver + Database on your main dedicated.

And a VPN static route between those to for secure packet transfers.

This way will remove the possibility for script kiddies to DDoS you also since the IP you give out is the Website/Loginserver only.

I've used this myself, and you need some special MySQL settings other then that its pretty easy.
I want to know about the VPN route too, can you explain better?
 
In can you want to use 2 vps, in your website config.php you need to edit here

/*Database information*/
$config['database']['host'] = "IP FROM YOUR SERVER VPS";
$config['database']['login'] = "USERNAME FROM YOUR SERVER VPS";
$config['database']['password'] = "PASSWORD FROM YOUR SERVER VPS";
$config['database']['database'] = "DATABASE FROM YOUR SERVER VPS";
 
Proxy servers for people outside where the server is located could work.

For example if you have a EU server and want US ppl playing.

You still will have a hard time getting the ping down under 100ms
 
How do you manage to get login server separated from game server?
 
Download and compile the login server and point it to the IP of the gameserver.

How i can do that? point the loginserver to IP of gameserver?
 
Last edited:
Back
Top