VGKAMI
Advertise Get listed

Game Guides

How to Install Mods on a Portal Knights Server (and What the Dedicated Server Supports)

Published 11 min read

You cannot install arbitrary code mods on a Portal Knights dedicated server through an official, documented mod loader. The supported server setup uses the Steam installation’s dedicated_server.zip, the pk_dedicated_server.exe program, a server_config.json file, UDP port forwarding, and save files. Portal Knights does officially support Steam Workshop sharing for Creative Mode islands, but that is user-created world content rather than proof that Workshop code mods can run on a dedicated server. You can still host a persistent world, import an existing save, and give other players controlled access; you just should not copy arbitrary Workshop files or use generic SteamCMD mod commands that are not documented for this game.

Can you install mods on a Portal Knights dedicated server?

No official server-side mod installation workflow is documented for Portal Knights. The developer’s dedicated-server instructions explain how to run the server executable, edit its JSON configuration, expose the network port, and copy world saves, but they do not describe a server mod loader, plugin directory, API, or supported command for loading arbitrary code.

The word “mods” is especially confusing here because Portal Knights has Steam Workshop support. The official Steam listing promotes Workshop as a way to create structures in Creative Mode and share islands with friends. That feature documents distribution of player-created island content; it does not establish that a dedicated server can execute Workshop code or automatically download Workshop items.

Accordingly, treat the following as supported:

  • Running the supplied dedicated server executable.
  • Changing server identity, networking, save location, universe size, and group permissions in server_config.json.
  • Hosting a world independently of a player’s game session.
  • Copying a compatible world into the server’s savedata directory.
  • Sharing Creative Mode islands through Steam Workshop as the game’s documented user-content feature.

A secondary guide describes Portal Knights as having no official mod support and mentions unofficial save editors. That is not an official developer API specification, so use such tools only if you accept the risk of corrupted saves and unsupported behavior. Do not place arbitrary Workshop downloads in the dedicated-server folder and expect them to load.

What do you need before setting up the server?

Prepare the following before you begin:

  • A Steam installation of Portal Knights with access to its local files.
  • A Windows computer or server on which you can run pk_dedicated_server.exe.
  • Permission to create and edit files in the folder that will host the server.
  • Router access if the machine is behind a home or office network address translation (NAT) device.
  • A text editor that can save plain text as ASCII or UTF-8.
  • A backup of any existing world before you move or edit it.

The developer warns that dedicated-server operation requires networking knowledge and time, and that exposing a machine without understanding its network can increase its attack surface. Use a separate account or machine where practical, keep the operating system and game files maintained, and expose only the port you intend to use.

How do you install the Portal Knights dedicated-server files?

  1. Open the game’s local files in Steam. In your Steam library, open Portal Knights’ local-file view and locate dedicated_server.zip. Copy that archive to the folder you have chosen for the server. Keeping the server files in their own folder makes backups and later maintenance easier.
  2. Extract the archive. Unzip dedicated_server.zip in the destination folder. Do not edit files inside the compressed archive; the executable must be able to read the extracted files.
  3. Run the executable once. Start pk_dedicated_server.exe. Its first run creates the server log, the configuration file, and a save-data folder. Wait for those items to appear, then stop the process cleanly before changing settings.
  4. Open the generated configuration. Edit server_config.json with a plain-text editor. Keep the file encoded as ASCII or UTF-8 and preserve valid JSON syntax: quoted strings need quotation marks, numeric values should not be quoted, and commas and braces must remain balanced.
  5. Start the executable again. After saving the configuration, launch pk_dedicated_server.exe a second time. The server reads the updated settings and writes runtime information to its log.

The initial run is important. If you edit a configuration file before the executable has generated its expected folders and defaults, you can end up troubleshooting a missing path rather than a network or game problem.

Which settings belong in server_config.json?

The JSON file is the control panel for the dedicated server. The documented settings cover the following areas; exact values depend on your network and the world you want to host.

Setting area What it controls Practical guidance
Server name The name players see when identifying the server. Use a recognizable name and avoid including private network details.
Bind address The local interface on which the process listens. Choose the address appropriate to the host’s network interfaces; an incorrect bind address can make a running process unreachable.
Port The UDP port used by the server. The developer instructions use UDP 16365 by default. If you choose another port, the router rule and the number given to players must match it.
Save folder The location in which the server stores world data. Use a stable folder with enough space and include it in your backup plan.
Universe size The size of the game universe created or hosted by the server. Set this before generating a new world when possible; changing world-related settings later may not transform an existing save as you expect.
admins, users, and guests Passwords and permissions for the three access groups. Give the highest privileges only to trusted administrators. Keep the admin password private and distribute lower-privilege credentials only to the people who need them.

Make one change at a time and retain a known-good copy of the JSON file. A malformed comma, quote, or path can prevent startup; reverting to the last working copy is faster than rebuilding every setting from memory.

What port does a Portal Knights server use?

The documented default is UDP port 16365. Forward that port from the router to the local IP address of the computer running pk_dedicated_server.exe. If you select a custom port in server_config.json, forward the custom UDP port instead and give players the same number.

  1. Assign the host computer a stable local address, or reserve its address in the router, so the forwarding rule does not point to a different device after a reboot.
  2. Create a router rule for UDP 16365, or for your custom value, targeting that host address.
  3. Allow the dedicated-server executable through the computer’s firewall when prompted. If you use a manual firewall rule, it must allow the same UDP port.
  4. Start the server and test from outside the host’s local network when possible. A local test can succeed even when the router’s external forwarding is wrong.
  5. Give players the external IPv4 address and the password for the group they should join. Do not publish the administrator credential.

Port forwarding is a network operation, not a mod installation step. A Workshop island or a changed save file cannot compensate for a blocked or mismatched port.

How do you move an existing Portal Knights world to the dedicated server?

Stop the dedicated server before copying a world. The server must not write to the same files while you are replacing them.

  1. Close the dedicated-server process and confirm that it is no longer running.
  2. Find the world files in the current local save location or in Steam Cloud, depending on where you have been playing.
  3. Make a complete backup of the destination savedata folder and the source world before changing either one.
  4. Copy the world files into the dedicated server’s savedata folder. Preserve the file and folder structure rather than flattening everything into one directory.
  5. Start the dedicated server and inspect its log for a normal startup. Join with a test account before inviting everyone.

The dedicated server is not synchronized with Steam Cloud. Once a world is running from the server’s savedata folder, changes made there will not automatically appear in Steam Cloud, and Cloud changes will not automatically return to the server. Treat the server copy as authoritative and create dated backups before migrations, configuration changes, or unofficial save editing.

Can Steam Workshop islands be used as server mods?

Workshop islands are documented as Creative Mode creations that can be shared with friends. They are not documented as executable server modifications. The available developer instructions do not say that a dedicated server subscribes to Workshop items, downloads them, or loads their files at startup.

If your goal is to play on a player-created island, use the game’s supported Workshop sharing flow and determine how that island is made available in the normal game client. If your goal is to change server rules, add commands, or run new gameplay code, the official dedicated-server material provides no installation path for doing so.

Do not follow generic instructions for other Steam games that tell you to use SteamCMD workshop-download commands or copy a Workshop folder into a server’s “mods” directory. Those procedures are not established for Portal Knights and can leave the server unchanged, produce an unusable save, or make it difficult to identify the original problem.

How do self-hosting and managed hosting differ?

Self-hosting gives you direct control over the executable, JSON file, saves, and network, but you must handle every operational task. A managed Portal Knights host can be a practical alternative when you do not want to maintain port forwarding, uptime, or file administration. Hosting panels generally expose the same core options—server name, port, save path, passwords, permissions, gameplay mode, and universe size—through a web interface.

Decision area Self-hosted server Managed host
Files and configuration Complete access to the extracted files, JSON, logs, and saves. Settings are provided through a panel; file access depends on the provider’s tools and policy.
Port forwarding You configure the router, firewall, and external address. The provider normally supplies a reachable endpoint, so home-router forwarding is not your responsibility.
Uptime The server is available only while your machine, network, and process are running. The host operates the machine continuously according to its service terms.
Maintenance You apply game files, monitor logs, restart the process, and diagnose failures. The provider handles infrastructure, while you still need to manage settings and game-specific problems.
Save backups You must copy and verify the savedata folder yourself. Backups may be included, automated, or optional; confirm retention and download access before relying on them.
Version changes You decide when to update the server files and must keep them compatible with players’ game versions. Updates may be exposed as a panel action or handled by support; check how rollback and version selection work.
Recurring cost No hosting subscription, but you provide the hardware, electricity, storage, and network connection. A recurring fee covers infrastructure; price, player capacity, backups, and support vary by provider.

Neither option creates an official mod loader. Managed hosting can simplify administration, not add undocumented server-side mod support.

What should you check when the server does not work?

The executable closes immediately

Run it once from the extracted folder and verify that the first-run log, configuration file, and save-data folder were created. If the process fails after editing the JSON, restore the last known-good copy and reapply one setting at a time. Check that the file remains plain ASCII or UTF-8 and that every path points to an existing location.

Players on the internet cannot connect

Confirm that the server’s configured port and the router’s forwarded UDP port are identical, that the rule targets the host’s current local address, and that the firewall allows the executable. Test with the external IPv4 address rather than the private address used inside the home network.

The server starts but the wrong world appears

Stop the process, check the configured save folder, and compare it with the folder into which you copied the world. Restore the backup if the destination was overwritten. Remember that Steam Cloud and the dedicated server maintain separate copies.

A player has too much access

Review the credentials and group assignments in server_config.json. Keep the admins password private and issue only the users or guests access appropriate to each person. Restart the server after changing credentials so the new settings are loaded.

A Workshop download does nothing

That result is expected when the download is island content rather than a server-supported plugin. The dedicated-server documentation does not define a Workshop subscription or code-mod directory, so copying files into the server folder is not a supported remedy.

How can you operate the server safely?

  • Keep the administrator password out of screenshots, chat messages, and public configuration uploads.
  • Back up server_config.json, the complete savedata folder, and the server log before major changes.
  • Use a stable local address for the host so the forwarding rule continues to target the correct computer.
  • Limit router exposure to the required UDP port and review firewall rules after troubleshooting.
  • Test a copied world with a non-admin account before inviting the full group.
  • Record which port, save path, and game-file version the server uses so another administrator can recover it.

The developer described a dedicated server as a way for four players to share a world without everyone being online at the same time. That convenience depends on treating the server as an always-available service: it needs a running process, a reachable network path, controlled credentials, and backups that are independent of Steam Cloud.

Frequently Asked Questions

Can a Portal Knights dedicated server run while the owner is offline?

Yes. The dedicated process runs separately from an individual player’s game session, so the world can remain available when its owner is not playing. The host computer and network connection still need to remain operational.

What happens if I change the server port but forget the router rule?

The process may be listening normally, yet internet players will be unable to reach it because the router is still forwarding the old port. Update the UDP forwarding rule and the connection details together, then restart and test from outside the local network.

Should I edit a world while the dedicated server is running?

No. Stop the process first, make a dated backup, and work on a copy of the save. Editing files that the server is actively writing can produce partial or corrupted data.

How do I give someone limited access instead of administrator rights?

Use the users or guests credentials configured in server_config.json rather than sharing the admins password. Give each person only the group needed for their role and change credentials if they are exposed.