How to Emulate a Habbo Retro on X4B (for DDoS Protection)
Step 1: Choose a service
Choose a billing cycle, a service tier/network and a clean-bandwidth allowance on the DDoS protection page, then click Continue to Checkout. On Complete Order, review the filtering region when offered, enter a Service Name, and review the Order Summary before submitting your order. If you already have a suitable active service, continue with that service.

Step 2: Select the service
After your service has been provisioned, open Services, find it by its service name, and choose Action > Ports. You do not need DNS changes for a client that connects directly to the Filtered IP; protect your website separately if it also needs to use X4B.
Step 3: Add the game port
Under Single Port, click Add port manually when Add your first port is shown; otherwise click Add Port. Set Port start to your hotel port (the example uses 30000), Protocol to TCP, and Backend method to Reverse Proxy. Set Backend address to your hotel server's IP and Backend port to the port on which it listens. Click Save and check the saved row. Keep any existing ports that other applications still use.

Step 4: Configure your client
After saving your port, go back to your CMS and head towards your client.php (for REVCMS) and for UberCMS it should be in class.config.php or ubercms_config.php for UberCMS 2.0.1. Now search for your connection info host.

This is my client.php it looks like this (above), it should look similar for others as well. Put your proxy IP in your connection.info.host and the connection.info.port should be 30000 (or whatever you entered on X4B), in the end it should look something like this:

Save your client.php and you are done.
Notes and debugging
You might be wondering what IP should be the server IP in your config, well it should be your VPS IP. With your client IP proxied , nobody can get your real IP so there is no need to worry and what about the emu ? That should be your server IP as well. In your emu config , your game.tcp.port must be must match the port you entered on X4B.
Are you using phoenix emulator? Well there is no need to worry about it at all, since your TCP port has to be 1232 since Aaron forced it to be that way. Just replace all references to port 30000 in this tutorial with 1232.
For more information see the page on Habbo Emulation Servers
Conclusion
Save your client.php and start your emulator , then click on enter client on your hotel and you should be logged on like me:


