Start Your Own Server
From the download to a server on the server list takes about five minutes. You need a PC or a rented server with Windows or Linux, and access to its firewall and, at home, to your router.
1. Download
Windows: HappinessMP Server 2.5 Windows.zip (Last updated: 2026-11-11)
Linux: HappinessMP Server 2.5 Linux.zip (Ubuntu 22.04, Last updated: 2026-11-11)
2. Unpack and start
Windows
- Extract the ZIP archive into a folder of its own.
- Run
HappinessMP.Server.exe.
Linux
- Extract the ZIP archive:
unzip "HappinessMP Server 2.5 Linux.zip" -d happinessmp-servercd happinessmp-server
- Make the server binary executable:
chmod +x HappinessMP.Server.out
- Run the server:
./HappinessMP.Server.out

The server comes with a small example gamemode (lua-gamemode), so there is something to join right
away.
3. Name it
Type stop into the server window, then open settings.xml in the server folder and change at
least these:
| Setting | Change it to |
|---|---|
hostname | The name players see in the server list. |
secret | Any random text. It encrypts the client scripts players download, and the value in the download is the same for everyone. |
episode | 1 for The Lost and Damned or 2 for The Ballad of Gay Tony. Leave 0 for GTA IV. |
Start the server again. Every other setting is explained in Settings.
4. Open the ports
If you want your server to be reachable from the internet, you have to open the following ports in your firewall and forward them in your router:
| Port | Protocol | Description |
|---|---|---|
| 9999 (default) | UDP and TCP | Main port. Handles the general communication between client and server as well as the HTTP server. |
| 9998 (default) | UDP | Relay port. Mainly used for the exchange of game sync packets. |
Both ports have to be open, otherwise players will not be able to join. If you changed the port in your settings.xml, open your configured ports instead of the defaults.
Example for Linux with ufw:
sudo ufw allow 9999/tcp
sudo ufw allow 9999/udp
sudo ufw allow 9998/udp
On Windows you can add the rules via Windows Defender Firewall → Advanced settings → Inbound Rules → New Rule.
5. Join and check the server list
To join your own server, open the launcher and connect to 127.0.0.1 with Quick Connect.
About a minute after the start, your server appears in the server list of the launcher and on happinessmp.net/servers. The list only shows servers it can reach from the internet. If yours is still missing after two minutes, a port is usually closed: check the firewall and the port forwarding in your router.
A server for you and your friends only does not have to be on the list. Set listed to false, and
everyone joins with your address through Quick Connect.