You can host a Portal Knights server on your own VPS with ZapX. The Dedicated Server is included with the PC version of Portal Knights and runs on Windows. This guide explains what you need, how to set up the server on your VPS, and how your friends can connect.
Portal Knights is not (yet) available in the Game Server Installer. You’ll need to set up the server manually, as described in this guide. The steps are based on the official guide from 505 Games in the Portal Knights Steam forum.
| Requirement | Portal Knights |
|---|---|
| Operating system | Windows |
| Server files | dedicated_server.zip from your Portal Knights installation |
| Game copy | A purchased PC version of Portal Knights (Steam) |
| Access | Remote Desktop |
The Portal Knights server only runs on Windows. If your VPS runs Linux, install a Windows Server template via Settings > Reinstallation. This deletes all data on the VPS. Learn more in Server Reinstallation.
A Dedicated Server provides a shared world for up to 4 players, without any of you needing to keep the game open.
Open server_config.json in a text editor. All entries must use ASCII or UTF-8. The most important settings are:
| Setting | Description |
|---|---|
name | Server name |
ipv4 | IP address the server listens on; 0.0.0.0 means all addresses |
port | Server port; default is 16365 |
saveFolderPath | Folder for saved games |
universeSize | World size: Small, Normal, or Large |
hideConsoleWindow | true hides the console window |
For each of the admins, users, and guests groups, set a password (credentials.password) and permissions. For example, you can set whether the group can log in (canLogin), kick players (canKickPlayers), or build and destroy (canModifyWorld). Keep the admin password secret.
Save the file and run pk_dedicated_server.exe again for the settings to take effect.
If you set hideConsoleWindow to true, you can only stop the server using Task Manager.
| Port | Protocol | Use |
|---|---|---|
| 16365 | UDP | Game (value from server_config.json) |
Open the port in Windows Firewall. Learn more in Manage Windows Defender Firewall rules. If you use your VPS’s Network Firewall in the ZapX dashboard, open the port there too.
