How to set up MuServer step by step
Understand ConnectServer, JoinServer and GameServer, and configure the rates, ports and files of your MuServer.
MuServer is the set of programs that make the game run. Understanding each one's role is essential to configure and troubleshoot.
The MuServer components
| Service | Function |
|---|---|
| ConnectServer | Receives the player and lists available servers |
| JoinServer | Manages accounts and login |
| GameServer | Where the game actually happens (maps, monsters, drops) |
| DataServer | Bridges the GameServer and SQL |
Step 1 — Point to the database
In the config files, set the SQL address, database name and the user created in the SQL tutorial.
Step 2 — Set IP and ports
Configure the ConnectServer IP (127.0.0.1 for tests) and each service's ports. Note them: you'll need them to open the firewall.
[ConnectServer]
ServerAddress = 127.0.0.1
Port = 44405
Step 3 — Adjust the server rates
This is where you define your server's "personality": EXP (leveling speed), Drop (item chance), Reset (level and bonus), Events (which are active).
Step 4 — Start and test
Start the services in the right order, connect with the client at 127.0.0.1, and validate login, character creation, drop and save.
Perguntas frequentes
What is ConnectServer?
It's the service that receives the player and directs them to the correct GameServer. It's the client's first point of contact with the server.
Can I have multiple GameServers?
Yes. Larger servers use subservers to spread the load, each with its own port, all connected to the same database.