Skip to content

Portal Knights: Set Up a Server on Your VPS

Learn how to set up the Portal Knights Dedicated Server on your Windows VPS, transfer your world, and connect with your friends → Learn more

10 November 20264 min read0 Views0 helpful

Introduction

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.

Info

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.

Requirements

RequirementPortal Knights
Operating systemWindows
Server filesdedicated_server.zip from your Portal Knights installation
Game copyA purchased PC version of Portal Knights (Steam)
AccessRemote Desktop
Info

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.

Configuration

Open server_config.json in a text editor. All entries must use ASCII or UTF-8. The most important settings are:

SettingDescription
nameServer name
ipv4IP address the server listens on; 0.0.0.0 means all addresses
portServer port; default is 16365
saveFolderPathFolder for saved games
universeSizeWorld size: Small, Normal, or Large
hideConsoleWindowtrue 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.

Warning

If you set hideConsoleWindow to true, you can only stop the server using Task Manager.

Ports and firewall

PortProtocolUse
16365UDPGame (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.

FAQ

Frequently asked questions

The file dedicated_server.zip is in your Steam installation of Portal Knights. In Steam, open the game’s Properties, go to Installed Files, and click Browse.
No. The server pk_dedicated_server.exe runs on Windows. If you have a Linux VPS, first install a Windows Server template via Settings > Reinstallation. This deletes all data.
The default is 16365 (UDP). You can change it in the port entry in server_config.json.

Feedback

Was this article helpful?

Your feedback helps us prioritize and improve content.

0 of 0 Users found this article helpful.

Personal support

Need more help than the guide provides?

Our ZAP support team knows your product — briefly describe your issue and we'll help you personally.

Zappy knows this guide and answers you right in the chat.