Skip to content

Steam dedicated fixes - #253

Merged
marchc1 merged 3 commits into
SourceDotNET:mainfrom
spacevx:steam-dedicated-fixes
Nov 12, 2026
Merged

marchc1 merged 3 commits into
SourceDotNET:mainfrom
spacevx:steam-dedicated-fixes

Conversation

@spacevx

@spacevx spacevx commented Nov 12, 2026 •

Copy link
Copy Markdown
Contributor

I couldn't connect to my dedicated server, and the server never wasn't logged to Steam

NetAddress: Copy() was shallow, so SetIP on a copy changed the client's address, and SetIP(uint) had the wrong byte order. So at the end i couldn't connect to my server

-port is now read like in gmod. Before that, only +hostport worked

Steam now shares the game socket (sv_master_share_game_socket), like gmod:

  • Forwarded packets send the real IP and port
  • Steam's replies are actually sent

GameServer.RunCallbacks() is used, because the native call does apparently nothing with Steamworks.NET manual dispatch.

Tested with a local dedicated server (only on windows tho)

@marchc1
marchc1 merged commit 59267dc into SourceDotNET:main Nov 12, 2026
16 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants