background image
Game Servers 380 7 Days to Die 4 Abiotic Factor 2 Aloft 2 alt:V 2 Americas Army Proving Grounds 2 Among Us 2 Archean 2 ARK Survival Ascended 6 ARK Survival Evolved 3 Arma 3 3 Arma Reforger 2 Aska 2 AssaultCube 2 Assetto Corsa 3 Astro Colony 2 Astroneer 2 Automobilista 2 2 Avorion 2 Banana Shooter 2 Barotrauma 3 BATTALION Legacy 2 BeamNG.drive (BeamMP) 2 Black Mesa 2 Brickadia 2 Call of Duty 2 Citadel: Forged with Fire 2 ClassiCube 2 Clone Hero 2 Colony Survival 2 Conan Exiles 4 Contagion 2 Core Keeper 2 Counter-Strike 2 3 Craftopia 2 CryoFall 2 CS2D 2 Cube 2: Sauerbraten 2 Cubic Odyssey 2 DayZ 4 DDNet 2 DDRaceNetwork 2 Dead Matter 2 Dont Starve Together 4 Eco 2 Empyrion Galactic Survival 2 Enshrouded 3 Escape from Tarkov 2 Euro Truck Simulator 2 2 Factorio 2 Farming Simulator 25 2 Fistful of Frags 2 FiveM 3 FortressCraft Evolved 2 Foundry 2 Foundry VTT 2 Frozen Flame 2 FTL Tachyon 2 Garrys Mod 3 Ground Branch 2 Half-Life 2 Deathmatch 2 Hogwarp 2 Holdfast: Nations at War 2 HumanitZ 2 Hurtworld 2 Hytale 1 Icarus 2 Insurgency Sandstorm 2 IOSoccer 2 Just Cause 3 Multiplayer 2 Kerbal Space Program 2 Killing Floor 2 3 LeagueSandbox 2 Left 4 Dead 2 Left 4 Dead 2 3 Longvinter 2 Los Angeles Crimes 2 Medal of Honor 2 Midnight Ghost Hunt 2 Mindustry 2 Minecraft 4 Minetest 2 Modiverse 2 Mordhau 3 Mount & Blade II: Bannerlord 2 Myth of Empires 2 Nazi Zombies Portable 2 Necesse 2 NeosVR 2 Neverwinter Nights EE 2 Night of the Dead 2 Nightingale 2 No Love Lost 2 No More Room in Hell 2 No One Survived 2 Nova-Life Amboise 2 Nuclear Option 2 Onset 2 Open Fortress 2 OpenArena 2 OpenRA 2 OpenRCT2 2 OpenTTD 2 Operation Harsh Doorstop 2 Palworld 3 Path of Titans 2 Pavlov VR 3 PixARK 2 Plains of Pain 2 Portal Knights 2 Post Scriptum 2 Project Zomboid 8 Puck 2 Quake Live 2 R5Reloaded 2 RedM 2 Renown 2 Resonite 2 Return to Moria 2 Rimworld Together 2 Rising World 2 Risk of Rain 2 1 Rust 4 Satisfactory 1 SCP Secret Laboratory 3 SCUM 2 Smalland 2 Solace Crafting 2 Soldat 2 Soldat 2 2 Sonic Robo Blast 2 2 Sons of the Forest 2 Soulmask 2 SourceCoop 2 Space Engineers 3 Space Station 14 2 Squad 3 Starbound 3 StarMade 2 Stationeers 2 Stormworks 2 Subnautica Nitrox 2 Sunkenland 2 SuperTuxKart 2 Sven Co-op 2 Swords 'n Magic and Stuff 2 Team Fortress 2 3 Teeworlds 2 Terraria 3 TerraTech Worlds 2 TF2 Classified 2 The Forest 3 The Front 2 The Isle 2 Tower Unite 2 Trackmania 2 Unturned 4 Urban Terror 2 V Rising 3 Valheim 3 VEIN 2 Veloren 2 Vintage Story 3 Voyagers of Nera 2 Wolfenstein: Enemy Territory 2 Wreckfest 2 Wurm Unlimited 2 Xonotic 2 Zandronum 2 Getting Started 2 Network & Connectivity 1 Server Management 2
Categorias

Portal Knights Server Setup Guide

Disponível em: ESPAÑOL

This guide covers how to set up your Portal Knights dedicated server on Legion Hosting, configure startup variables, adjust server settings, connect with friends, and manage your world saves. For admin controls and player management, see Portal Knights Admin Commands.

About Portal Knights: Portal Knights is a cooperative action RPG with sandbox elements. Players explore procedurally generated islands, fight bosses, build structures, and level up characters across a shared world. The dedicated server allows persistent worlds that stay online even when the host is not playing.

1. First Start

  1. Log in to GPanel and select your Portal Knights server.
  2. Go to the Startup tab and review the available variables (see the table below).
  3. Set a SERVER_NAME so you can identify your server in the browser.
  4. Change the ADMIN_PASS from the default. Optionally set USER_PASS or GUEST_PASS to restrict access to your group.
  5. Return to the Console tab and click Start.
  6. Wait for the console to indicate the server has finished loading. The first start will generate default configuration files and a new world.
First start takes longer: The initial boot generates world data and configuration files. Allow 1-2 minutes for everything to initialise before attempting to connect.

2. GPanel Startup Variables

The following variables are available in the GPanel Startup tab. These values are applied each time the server starts.

Variable Required Description
SERVER_NAME No The name displayed in the server browser. Defaults to Servername if not set. Maximum 32 characters.
ADMIN_PASS Yes Admin password for the server. Default is admin_password_please_change -- you should change this before starting.
USER_PASS No Password for user-level access. Leave blank for no password.
GUEST_PASS No Password for guest-level access. Leave blank for no password.
GAMEMODE No Gameplay mode for the server. Options: Adventure, Creative. Default is Adventure.
UNIVERSE_SIZE No Universe size for the server. Options: Small, Normal, Large. Default is Normal.

3. Server Configuration

Beyond the startup variables, Portal Knights allows fine-tuning through its server configuration file. Stop your server before making changes.

Configuration File Location

dedicated_server/server_config.json

Open this file using the Files tab in GPanel or connect via SFTP. If the file does not exist, start and stop the server once to generate it with default values.

Always stop your server before editing configuration files. The server may overwrite your changes on shutdown if it is running while you edit.

Key Settings

The configuration file uses JSON format. Key properties include:

Setting (JSON path) Default Description
basicServerData.name Servername Display name in the server browser (set via SERVER_NAME startup variable).
basicServerData.port (assigned by GPanel) Server port. Managed automatically by GPanel.
basicServerData.saveFolderPath ./savedata Path where world save data is stored.
admins.credentials.password admin_password_please_change Admin password (set via ADMIN_PASS startup variable).
users.credentials.password (empty) User-level password (set via USER_PASS startup variable).
guests.credentials.password (empty) Guest-level password (set via GUEST_PASS startup variable).
gameplayMode Adventure Gameplay mode: Adventure or Creative (set via GAMEMODE startup variable).
universeSize Normal Universe size: Small, Normal, or Large (set via UNIVERSE_SIZE startup variable).

Example Configuration

{
  "basicServerData": {
    "name": "My Portal Knights Server",
    "ipv4": "0.0.0.0",
    "port": 27015,
    "saveFolderPath": "./savedata"
  },
  "admins": {
    "credentials": {
      "password": "my_admin_password"
    }
  },
  "users": {
    "credentials": {
      "password": ""
    }
  },
  "guests": {
    "credentials": {
      "password": ""
    }
  },
  "gameplayMode": "Adventure",
  "universeSize": "Normal",
  "hideConsoleWindow": true
}

4. World Settings

Portal Knights worlds consist of procedurally generated islands connected by portals. Key world-related considerations:

  • Save Folder: World data is stored in the savedata directory (configured via basicServerData.saveFolderPath in the config).
  • Gameplay Mode: Set via the GAMEMODE startup variable. Adventure is the standard RPG experience; Creative allows free building and exploration.
  • Universe Size: Set via the UNIVERSE_SIZE startup variable. Controls the number of islands: Small, Normal, or Large.
  • Island Progression: Players progress through islands by collecting portal shards and activating portals. The server tracks all discovered islands and their states.

5. How to Connect

Option A -- In-Game Server Browser

  1. Launch Portal Knights via Steam.
  2. From the main menu, select Multiplayer.
  3. Choose Online Game and then Browse Servers.
  4. Search for your server by name or browse the list.
  5. Select your server and click Join. Enter the password if prompted.

Option B -- Direct Connect via IP

  1. Launch Portal Knights via Steam.
  2. From the main menu, select Multiplayer.
  3. Choose Online Game and then Direct Connect.
  4. Enter your server IP and port from GPanel's Network tab:
    <your-server-ip>:<port>
  5. Enter the server password if one is set.
Need help finding your server's IP and port? Ports are randomly assigned unless you have a private IP. See How to Find Your Server IP and Port.

6. Save Management

Save File Location

World saves are stored on the server at:

dedicated_server/savedata/

This path is configured via the basicServerData.saveFolderPath setting in server_config.json.

Manual Backups via SFTP

  1. Stop the server from GPanel to ensure all data is flushed to disk.
  2. Connect to your server via SFTP. See How to Upload Files via SFTP for instructions.
  3. Navigate to the dedicated_server/savedata/ directory.
  4. Download the entire world folder you want to back up.

Restoring a Save

  1. Stop the server from GPanel.
  2. Connect via SFTP and navigate to dedicated_server/savedata/.
  3. Upload your backed-up world folder, replacing the existing one if needed.
  4. Ensure the folder name matches the world_name setting in your configuration.
  5. Start the server from GPanel.
Tip: Always keep a local backup before replacing save files. If the uploaded save is corrupted or incompatible, you may not be able to recover without a backup.

Troubleshooting

  • Server not appearing in browser: Confirm the server is fully started in GPanel. The server browser may take 2-3 minutes to index a new server. Try direct connect via IP in the meantime.
  • Cannot connect: Verify your server IP and port in the GPanel Network tab. Ensure the server is running and not in a crashed state.
  • Crashes on startup: Delete the configuration file and restart to regenerate defaults. If the issue persists, check the GPanel console for error messages.
  • World not loading: Ensure the basicServerData.saveFolderPath setting in server_config.json points to the correct directory.

Related Articles

Need Help?

If you run into issues not covered here, open a support ticket and include your server IP, a description of the problem, and any error messages from the GPanel console.


Este artigo foi útil?

Ready to Get Started?

The servers are booted, select your plan and become our latest satisfied client.