Skip to content

Ports Ranges

Aleksandar Ovcharov edited this page Oct 6, 2024 · 4 revisions

Ports Ranges

This section is dedicated to the configuration of port ranges for various server functionalities. Properly setting these ranges is vital to prevent port conflicts and ensure seamless operation of services.

Configuration Guide: Define port ranges in a JSON format. Specify the start and end of the range for each server function. For instance, you might set a range for the main server port, a query port, and an RCON (Remote Console) port.

Warning

The variables you define in the port ranges must already exist in the egg configuration within Pterodactyl. The following are just examples of how to structure your port ranges.

Example:

{
   "SERVER_PORT": "7777-7780",
   "QUERY_PORT": "27015-27019",
   "RCON_PORT": "27020-27030",
   "EXTRA_ALLOCATION": "27019-27030:2"
}

SERVER_PORT is required!

Description of JSON Variables

  • SERVER_PORT: Specifies the range of ports where Pterodactyl will create the server. Format: "start-end".
  • QUERY_PORT: Defines the range for query ports, added if the relevant variable exists in the egg configuration. Format: "start-end".
  • RCON_PORT: Sets the range for RCON (Remote Console) ports, added if the variable exists in the egg configuration. Format: "start-end".
  • EXTRA_ALLOCATION: Determines additional ports to be added. For example, "27019-27030:2" means two ports from the 27019-27030 range will be added.

Each range is defined as "start-end", ensuring exclusive use of ports within these boundaries for their respective purposes.

You can use https://jsonlint.com to validate your port range JSON.

Clone this wiki locally