GameNetworkingSockets
github.com
- Free plan
- Windows
- macOS
- Linux
- iPhone and iPad
- API
- Self-hosted
What GameNetworkingSockets is
GameNetworkingSockets is a free, open-source transport layer for games that carries reliable and unreliable messages over UDP. It handles messages larger than the network MTU by fragmenting and reassembling them, with retransmission for reliable delivery. Packets use AES-GCM-256 encryption, while Curve25519 supports key exchange and certificate signatures. Peer-to-peer connections can traverse NAT through Google WebRTC ICE, and developers can connect a signaling service. One connection supports multiple message lanes with strict priorities or weighted bandwidth sharing. Diagnostic tools simulate packet latency and loss and measure detailed statistics. The C++ library also exposes a plain C interface, with third-party bindings listed for C#, Go and Rust. Build instructions cover Linux, Windows, macOS and iOS. Steam is not required, although authentication, signaling and Steam Datagram Relay are Steam-only services. The project does not include entity serialization, delta encoding or compression. It is licensed under BSD-3-Clause.
Who it suits
It suits developers building multiplayer games who need UDP transport, peer-to-peer networking and diagnostics. Teams needing higher-level state serialization or compression must provide those separately.
Good to know, and what to watch
- Reliable and unreliable UDP messages
- AES-GCM-256 packet encryption
- NAT traversal through WebRTC ICE
- Latency and packet-loss simulation tools
- C and third-party language bindings
- No entity serialization
- No delta encoding of state variables
- No compression included
- Steam Datagram Relay access is restricted
Plans
Every plan and priceOpen-source library
Free plan
The verdict
GameNetworkingSockets provides a focused, cross-platform UDP transport layer with encryption, peer-to-peer support and diagnostics. Its BSD-3-Clause license and free plan suit teams that can build higher-level networking features themselves.
What the maker publishes
- Build targets
- The project’s build instructions cover Linux, Windows, macOS, and iOS. source
- Connection controls
- It supports multiple message lanes on one connection, with strict priorities or weights for sharing bandwidth. source
- Cross-platform availability
- Valve says the library has shipped on consoles and mobile platforms, but states that access to that code requires contacting Valve because it cannot be distributed in this repository. source
- Diagnostics
- The library includes tools for simulating packet latency and loss, plus detailed statistics measurement. source
- Encryption
- It uses AES-GCM-256 per packet and Curve25519 for key exchange and certificate signatures. source
- Integrations
- Third-party language bindings are listed for C#, Go, and Rust. source
- Language interfaces
- The library is written in C++ and also provides a plain C interface for bindings to other languages. source
- License
- The repository identifies its license as BSD-3-Clause. source
- Message handling
- It supports messages larger than the underlying MTU through fragmentation, reassembly, and retransmission for reliable messages. source
- Not included
- The library does not provide higher-level entity serialization, delta encoding of state variables, or compression. source
- Peer-to-peer
- Its P2P features include NAT traversal through Google WebRTC ICE and support for plugging in a signaling service. source
- Purpose
- GameNetworkingSockets is a basic transport layer for games that sends reliable and unreliable messages over UDP. source
- Security reporting
- The security policy asks researchers to report vulnerabilities privately through HackerOne rather than as public issues or pull requests. source
- Steam dependency
- Steam is not required to use the open-source library, though Steam-only services include authentication, signaling, and Steam Datagram Relay. source
Checked against the maker's pages on 7 Oct 2026.