Discover how Edgegap works

Discover how Edgegap works

Steam Relay (SDR) for Game Developers: Uses and Limits

Published

Published

Published

Last reviewed for accuracy

Last reviewed for accuracy

Last reviewed for accuracy

Key Insights

Key Insights

Key Insights

In short: Steam Datagram Relay (SDR) is Valve’s relay network for games on Steam. It gets players connected, hides their IP addresses and filters attack traffic, which solves one of the major security concerns of player-hosted games and a main reason studios use relays. Valve charges no relay fee for it. It can also sit in front of dedicated servers. What it doesn’t do is run the game: in a peer-to-peer game, one player’s machine still owns the match, and Valve, not the studio, decides where relays are and how players are routed.

  • A Network, Not a Game Server: SDR carries game traffic over Valve’s backbone and hides IP addresses, but it runs no game logic.

  • Built for P2P and Dedicated Servers: Valve documents both uses, and Edgegap’s test connected a player to an Edgegap-hosted dedicated server through SDR with no new port.

  • The Host Still Owns P2P Matches: behind SDR, the host keeps its latency advantage, can still cheat and still ends the match by leaving.

  • No Relay Fee, No Say in the Route: Valve picks the relay sites and the routing, as a 2026 Steam Networking regression showed.

  • Moving Beyond It Doesn’t Mean Leaving Steam: an extensible relay or a dedicated server can take over the match while Steam keeps lobbies and friends.

In 2018, Fletcher Dunn, a software developer at Valve, gave a GDC talk on denial-of-service mitigation. It ended on how Steam partners could take shelter in the networking infrastructure Valve had built for CS:GO and Dota. In 2019, Valve opened that network to all Steam partners, and it now ships with Steamworks as Steam Datagram Relay (SDR).

The talk predates most of what SDR offers today, so this article relies on Valve’s current Steamworks documentation for the details. It covers what SDR does for a multiplayer game, what it leaves unchanged, how it works with dedicated servers, and when a game outgrows it.

What Is Steam Datagram Relay (SDR)?

Valve’s SDR documentation opens with a one-line definition: “Steam Datagram Relay (SDR) is Valve’s virtual private gaming network.” Game traffic travels through Valve’s relays and over its backbone instead of straight across the public internet.

Players connect to a relay, not to each other. That solves two problems at once. Players behind strict NAT or firewalls can still connect, and nobody learns anyone else’s IP address.

Valve describes the security side directly: “Relaying the traffic protects your servers and players from DoS attack, because IP addresses are never revealed.” Traffic is also authenticated, encrypted and rate-limited before it reaches the game.

Developers reach SDR through ISteamNetworkingSockets. For a peer-to-peer game, the setup is short: use calls such as CreateListenSocketP2P and ConnectP2P, and Steam handles the rest.

Like any relay server, SDR runs no game logic. It is a network for game traffic, not a place for the game to run.

Five moments of a match compared: basic P2P exposes the host’s IP and can fail at NAT; Steam’s relay hides IPs, connects through relays and blocks attacks between players; in both, the host’s PC still owns the match.

Is Steam Relay Free?

Valve publishes no fee for SDR. It comes with Steamworks, which Valve calls “a free suite of tools available to any developer to use in their game or software on Steam.” The cost of entry is publishing on Steam: a Steam Direct fee of $100 per app, which Valve recoups to the developer once the game reaches $1,000 in adjusted gross revenue.

Access comes with conditions. “To use the Valve network you need to be a Steam partner and use the version in the Steamworks SDK,” Valve’s networking documentation states.

Valve also publishes GameNetworkingSockets as open source, but notes that “the opensource code does not support accessing the relay network.” Players outside Steam can use the relays only if the game meets requirements Valve sets, which include shipping on Steam and agreeing to update the game when Valve asks.

Free to use doesn’t mean free of trade-offs. The next sections cover what stays with the host and what stays with Valve.

What Steam Relay Doesn’t Change in Peer-to-Peer Games

In a P2P game on Steam, one player’s machine hosts the match and everyone else connects to it, through SDR when a direct connection isn’t allowed or doesn’t work. The relay changes the path the packets take. It doesn’t change who runs the game.

That has three consequences, and SDR shares them with every shared relay service. The host plays with no network delay, while every other player’s traffic takes two hops through the relay. The host’s game owns the match state, so a host who modifies the game can alter the match. And when the host leaves, the match ends unless the game builds host migration.

That last point has a cost of its own. Speaking about relays in general, Michal Buras, then Lead Network Engineer at Highwire Games, warned in his 2024 Live Service Game Summit talk that “while the upfront of relays were cheap, the host migration solution you have to build becomes extremely expensive.”

What SDR does block is attacks on players’ connections. Nobody sees another player’s address, so nobody can flood the host off the network. For the full picture of where relays help and where they stop, see Edgegap’s guide to relay servers for multiplayer games.

Can Steam Datagram Relay Carry Dedicated Server Traffic?

Yes. Valve says so in its SDR documentation: “This relay network can be used for both peer-to-peer traffic and dedicated servers.” It describes two ways to do it.

The first reuses the P2P calls. A dedicated server logs on to Steam, opens a P2P listen socket, and players connect to its Steam ID instead of its IP address. In Valve’s words, “The peer-to-peer APIs work just fine even when one ‘peer’ is a dedicated server!” Valve adds a caveat: if the server isn’t near a data center where Valve runs relays, “the best relayed route might be slower than the default IP route.”

The second is built for servers in what Valve calls known data centers, which can be Valve’s own or “a third party data center that we have established a relationship with.” There, Valve makes sure relays run nearby. It also takes more work. The server listens with CreateHostedDedicatedServerListenSocket, and the studio’s own backend, which Valve calls a game coordinator, issues signed tickets that let each player reach a specific server. Valve asks studios to contact it for the SDKs.

Edgegap’s Test: a Dedicated Server Behind SDR

We tested the first path on 24 November 2026. The server was a headless Godot build using GodotSteam Server, hosted on Edgegap. It logged on to Steam anonymously and opened a P2P listen socket next to its usual ENet port. A client in Canada connected to it through SDR, using Valve’s public test app (Spacewar, app ID 480).

It connected in both locations we tried, with no new port and no change to the container image. The code change was about 130 lines in one file.

Server location

Route

SDR ping

Ashburn, Virginia, next to a Valve relay site

Through Valve’s Ashburn relay

27 ms (30 ms with the relay forced)

Tel Aviv, Israel, far from any Valve relay site

Two relays: Ashburn, then Paris

155 to 167 ms

The Tel Aviv run is Valve’s caveat in practice. With no relay site near the server, traffic reached it through Valve’s Paris relay.

Two limits apply. This was one tester, on one connection, using the P2P path only. We didn’t test the known-data-center path, which needs Valve’s involvement.

And SDR hides a server’s address only from traffic that comes through the relay. Our test server still accepted direct connections on its public game port, as most servers do, and an open port can still be targeted.

For a studio already on Steam, SDR is an option in front of a dedicated server on Edgegap’s orchestration, not only a way to keep a game player-hosted.

Where Are Steam’s Relay Servers, and Who Picks the Route?

Valve doesn’t list its relay sites in the Steamworks documentation, but its network configuration is public through the Steam Web API. For Counter-Strike 2, on 24 November 2026, it listed 53 sites, 45 of them with relays, and 220 relay addresses in total.

They cover North and South America, Europe, Asia and Australia. Johannesburg is the only site in Africa, and Dubai and Fujairah, both in the UAE, are the only ones in the Middle East. About 20 sites are in China, almost all on Alibaba Cloud or Tencent.

Within that map, routing adapts quickly. Valve’s 2019 announcement says players can switch to a different relay “within seconds” if one becomes unavailable.

The map itself, and the routing rules, belong to Valve. In March 2026, a Steam client change stopped honoring players’ IP-sharing setting, so P2P matches that should have connected directly fell back to relays (GameNetworkingSockets issue #398).

Israeli players in Street Fighter 6 saw pings of roughly 120 ms connecting PC to PC, against 60 to 80 ms for European players on the same title. The same Israeli players saw 5 to 10 ms on cross-play with a PlayStation 5. Reports also came from Egypt and China, in Deep Rock Galactic, Warhammer: Vermintide 2 and other games.

Valve confirmed the bug and shipped a fix in the Steam client on 10 June 2026. Until then, the studios involved could only wait. The routing wasn’t theirs to change.

For more on why the number and placement of locations decides latency, see why the only real answer to latency is more locations.

Steam Relay in Unity, Unreal and Godot

SDR is a Steamworks API, so each engine reaches it through a Steam integration.

  • Unreal Engine: the built-in Steam Sockets plugin swaps the default net driver for SteamSocketsNetDriver. Epic describes it as running on “Steam’s communication network, with built-in DDoS protection, end-to-end encryption, and NAT traversal.” Builds with it enabled only connect to other Steam Sockets builds.

  • Unity: Steamworks.NET and Facepunch.Steamworks wrap the Steamworks SDK, and community transports connect them to each netcode: FizzySteamworks for Mirror, FishySteamworks and FishyFacepunch for FishNet, and community SteamNetworkingSockets and Facepunch transports for Netcode for GameObjects. Unity doesn’t maintain those community transports.

  • Godot: GodotSteam includes SteamMultiplayerPeer, which plugs Steam networking into Godot’s high-level multiplayer. The test above used GodotSteam Server for the dedicated server.

Relay Status Errors Players Will Report

When SDR can’t be reached, players see a connection error, and they search for it by name. The Steamworks API reports the relay network’s state through GetRelayNetworkStatus, with states such as “cannot try” (for example, when the internet is down or the network config is missing), “failed”, “previously” connected, and “retrying”.

A game that checks that status before matchmaking can tell players what is wrong instead of leaving them on a timeout.

Players also control an IP-sharing setting in Steam, which decides whether their P2P traffic can go direct or always goes through a relay. Two players in the same match can take different routes for reasons the game doesn’t choose.

When to Move Beyond Steam Relay

SDR fits games played among friends: co-op, private lobbies, sessions with no ranked mode or economy. Players who trust each other mostly need to connect, and SDR handles that.

The reason to move is usually one of three. Strangers start meeting in matches, so the host’s control becomes a fairness problem. Progression or an economy appears, so results become worth faking. Or players in some regions keep getting long routes, and the studio wants to choose where the traffic goes.

There are two next steps, depending on how much changes.

An extensible relay keeps the host-client netcode. It is a relay the studio runs on its own dedicated server, in locations it chooses, with room for its own code such as room passwords, rate limits or telemetry. Once that code validates gameplay, it stops being a relay. As Buras put it, “If you’re computing, it’s not a relay server anymore.”

The other step is a dedicated server that owns the match. For co-op, casual and small competitive matches, that can be a small dedicated server placed near each match’s players on a fraction of a vCPU, with no host to leave and no host advantage.

Neither step means leaving Steam. With Edgegap’s Steam Lobbies integration, players keep Steam for lobbies, invites and friends, and the lobby hands them the address of a dedicated server for the match.

Conclusion

SDR does a narrow job well. It connects players behind NAT, hides their addresses and filters attack traffic, and it can carry dedicated-server traffic too, as Valve documents and our test confirmed.

What it doesn’t do is run the game or let the studio choose the route. In a P2P game, the host still owns the match. In every game, Valve decides where the relays are. The 2026 regression made that concrete: the fix was Valve’s to ship.

Sources

This article cites the works listed in Sources, with technical input from Philip Coté, CTO at Edgegap. All rights in the original content are owned by their respective owners.

Written by

Philip Coté (CTO)

FAQ
FAQ
FAQ

1. Is Steam relay free?

Valve charges no fee for Steam Datagram Relay. It comes with Steamworks, so the cost is publishing on Steam: a Steam Direct fee of $100 per app, recouped once the game reaches $1,000 in adjusted gross revenue. You still pay for any servers you run yourself.

2. What is the difference between Steam Relay and Unity Relay?

Both forward traffic between a host and the other players without running game logic, so in both the host’s game owns the match. Steam Datagram Relay is part of Steamworks and requires a Steam partner account and the Steamworks SDK. Unity Relay is part of Unity Gaming Services, doesn’t require publishing on Steam, and is priced on concurrent users and bandwidth beyond a free tier.

3. Can Steam relay be used with a dedicated server?

Yes. Valve documents two ways: a dedicated server can use the same P2P calls as players, from any host, or it can run in a data center Valve knows, with tickets issued by the studio’s backend. Edgegap tested the first way with a GodotSteam Server build hosted on Edgegap in November 2026.

4. Can I use Steam relay in Unity?

Yes, through Steamworks.NET or Facepunch.Steamworks and a transport for your netcode, such as FizzySteamworks for Mirror or FishySteamworks for FishNet. Netcode for GameObjects has community Steam transports, which Unity doesn’t maintain.

Get your Game Online Easily & in Minutes

Start Integrating Now!

Get your Game Online Easily
& in Minutes