settings/default/network.lua file controls connectivity between the database, client, and server executables. All values live under xi.settings.network.
Database connection
Hostname or IP address of the MariaDB server.Environment variable:
XI_NETWORK_SQL_HOST or MARIADB_HOSTPort the MariaDB server listens on.Environment variable:
XI_NETWORK_SQL_PORTMariaDB username.Environment variable:
XI_NETWORK_SQL_LOGIN or MARIADB_USERMariaDB password.Environment variable:
XI_NETWORK_SQL_PASSWORD or MARIADB_PASSWORDName of the MariaDB database.Environment variable:
XI_NETWORK_SQL_DATABASE or MARIADB_DATABASENumber of times to reconnect and retry a failed database query before giving up.
Login server ports
These settings configure the addresses and ports that thexi_connect login server binds to. The default bind address 0.0.0.0 listens on all interfaces.
| Setting | Default | Description |
|---|---|---|
LOGIN_DATA_IP | '0.0.0.0' | Bind address for the login data channel |
LOGIN_DATA_PORT | 54230 | Port for the login data channel |
LOGIN_VIEW_IP | '0.0.0.0' | Bind address for the login view channel |
LOGIN_VIEW_PORT | 54001 | Port for the login view channel |
LOGIN_AUTH_IP | '0.0.0.0' | Bind address for the login auth channel |
LOGIN_AUTH_PORT | 54231 | Port for the login auth channel |
LOGIN_CONF_IP | '0.0.0.0' | Bind address for the login conf channel |
LOGIN_CONF_PORT | 51220 | Port for the login conf channel |
Map server
UDP port the
xi_map process listens on for client zone connections.Search server
Port the
xi_search process listens on for auction house and /sea queries.HTTP API
Enable the HTTP API served by
xi_world.Hostname the HTTP server binds to. Set to
'0.0.0.0' to listen on all interfaces.Environment variable: XI_NETWORK_HTTP_HOSTPort for the HTTP API.
ZMQ (inter-process messaging)
ZMQ settings are used byxi_world as the central message server. All map server instances and the world server must share the same ZMQ settings.
IP address of the ZMQ message server.Environment variable:
XI_NETWORK_ZMQ_IPPort for the ZMQ message server.
TCP socket settings
Debug
Log debug reports for UDP socket errors.
Log debug reports for TCP socket errors.
Seconds a socket can stall before the connection is forcibly closed.
IP rules
Enable IP-based connection filtering and DDoS protection.
Order in which allow and deny rule lists are evaluated. Valid values:
'deny,allow'— Check deny rules first, then allow rules. Allow if no rule matches.'allow,deny'— Check allow rules first, then deny rules. Allow if no rule matches.'mutual-failure'— Allow only if an allow rule matches and no deny rules match.
Comma-separated list of IP addresses or CIDR ranges to explicitly allow. Examples:
'127.0.0.1,192.168.0.0/16', 'all'.Comma-separated list of IP addresses or CIDR ranges to explicitly deny. Example:
'10.0.0.0/8'.Connection rate limiting
Time window in milliseconds within which repeated connection attempts are counted. Default is 3 seconds.
Maximum number of connection attempts within
TCP_CONNECT_INTERVAL before the source IP is locked out.Duration in milliseconds that a locked-out IP is blocked. Default is 10 minutes.
Docker environment variables
For Docker deployments, the most commonly overridden network settings map to these environment variables:MARIADB_DATABASE, MARIADB_USER, and MARIADB_PASSWORD aliases (used by the official MariaDB Docker image) are also accepted.