DocsHosting a server
Run the server
Start scripts, command line options, environment variables and the ports of a dedicated server.
The server package runs on Windows and Linux - your own PC, a VPS or a game server panel like Pterodactyl.
#Start
| System | Script | Notes |
|---|---|---|
| Windows | start.bat | Passes -stdin, so you can type in the server console. |
| Linux | start.sh | Console input is on, so it works in Pterodactyl and similar panels. |
The map is set on the command line, or by the game's default server map:
text
MyGameServer.exe /Game/Maps/World -port=7777#Command line
| Option | What it does |
|---|---|
-port=7777 | The game port. |
-servercfg=path/server.cfg | Use another config file. |
-resources=path/resources | Use another resource folder. |
-licensekey=vx_... | The server key (instead of server.cfg). |
-stdin / -nostdin | Turn console input on (Windows) / off (Linux). |
-log | Show a log window. |
#Environment variables
| Variable | What it does |
|---|---|
VANTIX_LICENSE_KEY | The server key. Good for panels that keep secrets out of files. |
#Where the key comes from
The server uses the first key it finds, in this order:
-licensekey=on the command line- The
VANTIX_LICENSE_KEYenvironment variable sv_licenseKeyinserver.cfg
#Ports
| Port | Protocol | Used for |
|---|---|---|
| 7777 | UDP | The game (change with -port=) |
| 7778 | UDP | Server list ping - game port + 1, or sv_queryport |
Open both in your firewall and router. Every server on the same machine needs its own ports, e.g. 7777/7778 and 7787/7788.
Tip
Behind a panel or proxy with its own domain? Set sv_endpoint in server.cfg to the address players should use.
#How a server gets listed
- The server sends a heartbeat with its key to the master server every 30 seconds.
- A server is online in the list if it sent a heartbeat in the last 90 seconds.
- Players connect straight to your server. The master server is only the list.
- When the server shuts down, it removes itself from the list.
Last updated 2026-12-06