Ports
When running a game on Rivet, you need to expose ports for players to connect to your lobby.
By default, Rivet uses Rivet Game Guard to enable DDoS mitigation and TLS termination out of the box. We recommend using this whenever possible, but on rare occasion you will need to use host networking.
Connecting to your game
When finding a lobby, Rivet returns map of ports
with the address and port to connect to.
Unless using host networking, there is no static IP address and port exposed for players to connect to your game.
Support Matrix
Protocol | Rivet Game Guard | Host Network (Open Source & Enterprise) |
---|---|---|
Requires single port | Requires port range | |
HTTPS / Secure WebSocket | ✅ | |
HTTP / WebSocket | ✅ | |
TCP + TLS | ✅ | |
TCP | ✅ | ✅ |
UDP / WebRTC / ENet / KCP | ✅ | ✅ |