The WorldLink server uses two ports that can be configured in multiple ways:
- Lobby Port: 20100 (HTTP API server)
- Relay Port: 20101 (Game communication server)
- (Change default ports in Application.kt and FutariLobby.kt, I made these changes cuz the cloud provider is not really giving me 20100 and 20101)
- (NOT the best solution, still trying to make it pretty, but it is what it is for now)
# Start with custom ports
java -jar build/libs/worldlinkd.jar --lobby-port 20100 --relay-port 20101
# Start with only lobby port (relay uses default)
java -jar build/libs/worldlinkd.jar --lobby-port 20100
# Start with only relay port (lobby uses default)
java -jar build/libs/worldlinkd.jar --relay-port 20101# Set environment variables
export LOBBY_PORT=20100
export RELAY_PORT=20101
# Start the server
java -jar build/libs/worldlinkd.jar# Set environment variables
set LOBBY_PORT=20100
set RELAY_PORT=20101
# Start the server
java -jar build\libs\worldlinkd.jar- Command line arguments (highest priority)
- Environment variables (medium priority)
- Default values (lowest priority)
java -jar build/libs/worldlinkd.jarjava -jar build/libs/worldlinkd.jar --lobby-port 11451 --relay-port 19198export LOBBY_PORT=20100
export RELAY_PORT=20101
java -jar build/libs/worldlinkd.jarAfter starting the server with custom ports, update your WorldLink.toml:
# Point to your server with the lobby port
LobbyUrl="http://YOUR_SERVER_IP:YOUR_LOBBY_PORT"If you get a "port already in use" error:
# Check what's using the port
netstat -an | grep :8080
# Use a different port
java -jar build/libs/worldlinkd.jar --lobby-port 8081 --relay-port 8082Make sure your firewall allows:
- TCP port for lobby server
- TCP port for relay server
- UDP ports (dynamic, for peer-to-peer)
- Verify the server is running:
netstat -an | grep :YOUR_LOBBY_PORT - Check your
WorldLink.tomlconfiguration - Ensure the lobby port in the URL matches your server configuration