ConnectServer.ini
Ports, per-IP connection cap, and license for ConnectServer
Primary configuration file for ConnectServer. All keys live under a single [ConnectServerInfo] section.
File Location
ConnectServer/ConnectServer.iniLoaded once at startup. Changes require a ConnectServer restart.
Configuration
All keys belong to section [ConnectServerInfo].
ConnectServerPortTCP
int
44405
TCP port clients connect to for the server list. Must match the port the launcher hands off to the client. Exposed to the internet.
ConnectServerPortUDP
int
55557
UDP port that receives heartbeats from JoinServer and every GameServer. Must match the ConnectServerPort value in JoinServer's JoinServer.ini and each GameServer's GameServerInfo - Common.dat. Internal traffic only; do not expose.
MaxIpConnection
int
0
Maximum simultaneous client connections allowed from a single source IP. See MaxIpConnection below.
LicenseKey
string
(empty)
License token tied to this ConnectServer instance. Required; empty or invalid prevents startup.
MaxIpConnection
Limits how many TCP connections a single source IP can hold at once against ConnectServer.
0
Blocks every connection. Never set to 0 in a live deployment.
1 to N
Allows up to N simultaneous connections from each IP. Additional connections are rejected at accept time.
MaxIpConnection = 0 rejects every client. The shipped template uses 10; if this key is missing from the file, the parser defaults to 0 and no one can connect.
Tune based on expected NAT'd clients sharing a public IP:
10is reasonable for residential connectionsHigher values (e.g.
50) suit LAN cafes or networks where many players share one gatewayLower values tighten per-IP scraping/bot pressure at the cost of legitimate shared-IP users
Port Exposure
ConnectServerPortTCP
TCP
Game clients
Yes
ConnectServerPortUDP
UDP
JoinServer + GameServers
No
Block ConnectServerPortUDP at the edge; only JS and GS hosts should reach it.
Important Behavior
Missing or unreadable
ConnectServer.inileavesLicenseKeyempty, which aborts startup before any socket opensIf any port key is absent, the default value from the table above is used; the sockets still open on those defaults
If
MaxIpConnectionis absent from the file, the default is0and all connections are blockedLicenseKeyis validated online at startup; activation failure aborts startup with no offline grace at that point. Once activated, runtime heartbeats have a grace windowFile is read with the Windows INI parser - quotes, trailing spaces, and BOM can cause silent value truncation
Examples
Common Issues
Every client fails to connect -
MaxIpConnectionis0or missing from the fileLegitimate players rejected at high traffic times - NAT pool sharing a public IP exceeds
MaxIpConnection; raise itJoinServer shows offline despite running -
ConnectServerPortUDPon this server does not match theConnectServerPortset in JoinServer.iniPort already in use at startup - another process is bound to
ConnectServerPortTCPorConnectServerPortUDP
Last updated