Hosting a G1R:MP dedicated server

From Wiki G1R-MP G1 Remake Multiplayer
Revision as of 23:26, 28 August 2026 by QCherry (talk | contribs) (Document public address and port requirements for dedicated servers)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search


Hosting a G1R:MP dedicated server

Public network access is required. A server hosted on your own computer still needs a publicly reachable address and the required ports opened or forwarded.

This requirement also applies when the dedicated server, launcher, and game are running on the same computer. Protocol 26 uses the official G1R:MP service for server discovery and connection authorization, including direct-connect attempts. Private-only server addresses are not accepted for public registration.

The official service does not relay gameplay. After authorization, gameplay, voice, and resource traffic connects directly to the public endpoint advertised by the dedicated server. This architecture requires that endpoint to be reachable from the Internet.

Public address requirement

The host must have either:

  • a public, externally reachable IP address; or
  • a DNS name that resolves to that public address.

Addresses such as 127.0.0.1, localhost, 192.168.x.x, and 10.x.x.x are not reachable from the Internet.

If the server is behind a home router, configure port forwarding from the router's public address to the computer's fixed LAN address. If the ISP uses carrier-grade NAT (CGNAT), ordinary router port forwarding is not sufficient; request a public IP address from the ISP or host the server on a publicly reachable VPS.

For the standard automatic listing configuration, leave listing.publicHost empty. The official service can use the source address of the server heartbeat. Set it only when advertising a public DNS name that resolves to the same server.

[listing]
publicHost=

Default ports

The current default configuration uses the following ports:

Purpose Default port Protocol Public access
Gameplay transport 7777 UDP Required
Voice relay 7778 UDP Required when voice chat is enabled
Resource download service 7780 TCP Required when http.mode=auto or the built-in HTTP service is used
RCON administration 7781 TCP Do not expose; loopback-only by default
MariaDB/MySQL 3307 in the shipped Gothic RP configuration, or the locally configured database port (commonly 3306) TCP Do not expose when the database is on the same host

The server also requires outbound HTTPS access, normally TCP port 443, to synchronize with the official G1R:MP service. This is an outbound connection and does not require router port forwarding.

If any ports are changed in serverconf.cfg, update the firewall and router rules to match the configured values.

The public services should normally listen on all local interfaces:

[server]
bind=0.0.0.0
port=7777

[voice]
enabled=true
bind=0.0.0.0
port=7778

[http]
mode=auto
bind=0.0.0.0
port=7780

Keep RCON restricted to the local machine:

[rcon]
enabled=true
allowRemote=false
bind=127.0.0.1
port=7781

Firewall examples

Windows

Run PowerShell as Administrator:

New-NetFirewallRule -DisplayName "G1R:MP Gameplay" -Direction Inbound -Action Allow -Protocol UDP -LocalPort 7777
New-NetFirewallRule -DisplayName "G1R:MP Voice" -Direction Inbound -Action Allow -Protocol UDP -LocalPort 7778
New-NetFirewallRule -DisplayName "G1R:MP Resources" -Direction Inbound -Action Allow -Protocol TCP -LocalPort 7780

Linux with UFW

sudo ufw allow 7777/udp
sudo ufw allow 7778/udp
sudo ufw allow 7780/tcp

On a VPS or cloud host, add equivalent inbound rules to the provider firewall or security group as well as the operating-system firewall.

Testing reachability

Test the server from a different Internet connection, such as another household or a mobile hotspot. Testing only from the same LAN can give misleading results because routers handle NAT loopback differently.

A server appearing in the master list confirms that its outbound heartbeat reached the official service. It does not by itself prove that UDP 7777, UDP 7778, and TCP 7780 are reachable from the Internet.

Do not solve a connection problem by opening RCON or MariaDB publicly. Those services should remain private.