Skip to main content

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​

  1. Extract the ZIP archive into a folder of its own.
  2. Run HappinessMP.Server.exe.

Linux​

  1. Extract the ZIP archive:
    unzip "HappinessMP Server 2.5 Linux.zip" -d happinessmp-server
    cd happinessmp-server
  2. Make the server binary executable:
    chmod +x HappinessMP.Server.out
  3. Run the server:
    ./HappinessMP.Server.out

Image

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:

SettingChange it to
hostnameThe name players see in the server list.
secretAny random text. It encrypts the client scripts players download, and the value in the download is the same for everyone.
episode1 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:

PortProtocolDescription
9999 (default)UDP and TCPMain port. Handles the general communication between client and server as well as the HTTP server.
9998 (default)UDPRelay 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.

Next steps​

  • Resources: write your own gamemode in Lua or JavaScript.
  • Addons: add your own vehicles, weapons and maps.
  • Commands: control the running server from its window.
  • Questions? Ask on Discord.