Habbo on 2 vpses!

Status
Not open for further replies.

Linxon

IzyHosting.com
Mar 28, 2015
104
8
Hello,

How can i have IIS and swfs on one vps, and emulator + database on another?
Thanks :)
 

Joe

Well-Known Member
Jun 10, 2012
4,172
1,955
Easy, in the MySQL config just enter the details from the other server. Setup a host, username and password in Navicat in both so that they can communicate.

Since the emulator and database are on the same server the only thing you'll need to change is the config for your CMS. The only downside I can see to this is how well the two servers communicate with one another.
 

Core

Member
Nov 10, 2016
356
138
You will need to make mysql accept remove connections, which isn't enabled by default.
Then set up your EMU normally but your CMS mysql IP address will be the emulators ip address.
Also, the IP on your client will be the IP of the emulator server;
Unless; You're using a proxy, but then still the proxy IP should point to emulator server.

Easy, in the MySQL config just enter the details from the other server. Setup a host, username and password in Navicat in both so that they can communicate.

Since the emulator and database are on the same server the only thing you'll need to change is the config for your CMS. The only downside I can see to this is how well the two servers communicate with one another.

Downside would be latency but will likely be over come by performance. The best solution would be to get two servers on the same host (one which offers an intranet or local service); would cut going out to WWW and back again. xD
 
  • Like
Reactions: Joe

Linxon

IzyHosting.com
Mar 28, 2015
104
8
You will need to make mysql accept remove connections, which isn't enabled by default.
Then set up your EMU normally but your CMS mysql IP address will be the emulators ip address.
Also, the IP on your client will be the IP of the emulator server;
Unless; You're using a proxy, but then still the proxy IP should point to emulator server.



Downside would be latency but will likely be over come by performance. The best solution would be to get two servers on the same host (one which offers an intranet or local service); would cut going out to WWW and back again. xD
Client loads to 100% then turns black.. Waiting 5sec and getting message "No users found"
 

Core

Member
Nov 10, 2016
356
138
You will need to make mysql accept remove connections, which isn't enabled by default.
Then set up your EMU normally but your CMS mysql IP address will be the emulators ip address.
Also, the IP on your client will be the IP of the emulator server;
Unless; You're using a proxy, but then still the proxy IP should point to emulator server.
Client loads to 100% then turns black.. Waiting 5sec and getting message "No users found"

No users found? Where are you getting this error? emulator or cms?
 

Core

Member
Nov 10, 2016
356
138
That's an issue with your emulator not the vps'.
Unless, you've not connected the database correctly on the CMS so it's not generating SSO.

Try loging out of the cms and then back in.
 

Linxon

IzyHosting.com
Mar 28, 2015
104
8
This is my config. The ip is the cms + swf ip. Do it has to be changed with emu + db ip?
 

Joe

Well-Known Member
Jun 10, 2012
4,172
1,955
I wouldn't recommend you use {server_ip}, just write the IP into your client.php along with the port.

Since your emulator is connecting to your MySQL which is on the other server, you need to be changing your config for your emulator (to match the MySQL settings).
 

Linxon

IzyHosting.com
Mar 28, 2015
104
8
I wouldn't recommend you use {server_ip}, just write the IP into your client.php along with the port.

Since your emulator is connecting to your MySQL which is on the other server, you need to be changing your config for your emulator (to match the MySQL settings).
Nothing is working. Now i have the CMS ip in emulator config and i have the emulator ip in client.php..
 

Joe

Well-Known Member
Jun 10, 2012
4,172
1,955
Not sure if this is the proper way, but when I used two servers I did this to setup the external account so that they would communicate through the host.
f3872062ae8f46aeb6e81ba006752da9.png
 

Linxon

IzyHosting.com
Mar 28, 2015
104
8
Not sure if this is the proper way, but when I used two servers I did this to setup the external account so that they would communicate through the host.
f3872062ae8f46aeb6e81ba006752da9.png
Okey, i have added a user on my emulator vps and took the "host" to my cms ip. Now, do i have to add the cms ip in the configuration settings? like game.tcp.bindip etc? What to do next?
 
Not sure if this is the proper way, but when I used two servers I did this to setup the external account so that they would communicate through the host.
f3872062ae8f46aeb6e81ba006752da9.png
I have fixed now! Thanks!!! But, the website is a little bit laggy.. Client is not, only CMS.
 
  • Like
Reactions: Joe
Status
Not open for further replies.

Users who are viewing this thread

Top