What port does the Gateway use

gateway.port controls the single multiplexed port for WebSocket + HTTP (Control UI, hooks, etc.).
Precedence:
--port > OPENCLAW_GATEWAY_PORT > gateway.port > default 18789