Configuration
Configure your Gurotopia server and client connection
Server Configuration
This guide explains how to configure your Gurotopia server and set up client connections.
Hosts File Configuration
To connect to your local server, you must modify your system's hosts file to redirect Growtopia's servers to your local machine.
Windows
- Open Notepad as Administrator
- Open the file:
C:\Windows\System32\drivers\etc\hosts - Add the following lines at the end:
127.0.0.1 www.growtopia1.com
127.0.0.1 www.growtopia2.com- Save the file
You need administrator privileges to edit the hosts file on Windows.
Linux / macOS
- Open terminal
- Edit the hosts file with sudo:
sudo nano /etc/hosts- Add the following lines:
127.0.0.1 www.growtopia1.com
127.0.0.1 www.growtopia2.com- Save with
Ctrl + O, then exit withCtrl + X
Server File Configuration
The server configuration is managed through the server_data.php file. This file is automatically created with default values on first run if it doesn't exist.
Configuration Options
The server_data.php file contains the following configuration parameters:
| Parameter | Description | Default Value |
|---|---|---|
server | Server IP address | 127.0.0.1 |
port | Server port number | 17091 |
type | Server type identifier | 1 |
type2 | Secondary server type identifier | 1 |
maint | Maintenance message displayed when server is under maintenance | Server under maintenance. Please try again later. |
loginurl | Login server URL | login-gurotopia.vercel.app |
meta | Server metadata identifier | gurotopia |
Example Configuration
server|127.0.0.1
port|17091
type|1
type2|1
#maint|Server under maintenance. Please try again later.
loginurl|login-gurotopia.vercel.app
meta|gurotopia
RTENDMARKERBS1001Lines starting with # are treated as comments and won't affect the configuration. The file must end with RTENDMARKERBS1001 to be properly parsed.
Editing the Configuration
- Open the
server_data.phpfile in a text editor - Modify the desired configuration values
- Save the file
- Restart the server for changes to take effect
Reverting Changes
To connect to official Growtopia servers again, remove or comment out the lines you added to the hosts file:
# 127.0.0.1 www.growtopia1.com
# 127.0.0.1 www.growtopia2.com