GameNetworkingSockets icon indicating copy to clipboard operation
GameNetworkingSockets copied to clipboard

Can't do unauthenticated UDP connections

Open maxha651 opened this issue 3 years ago • 5 comments

I'm trying to get unauthenticated UDP connections to works and afaict it should be possible to have a direct connection without logging in to steam or any internet access as long as AllowWithoutAuth is set. Correct?

I don't get any immediate error, but the server (which called CreateListenSocketIP) is continuously getting the error "We don't know our local identity." when trying to accept the incoming connection. I looked a bit at the code and I suspect that while the connecting client sets the local identity here, that part seems missing for the server?

I'm using the Steamworks SDK, not the open source version if it makes any difference.

maxha651 avatar Jul 11 '22 12:07 maxha651

I think you are right that we probably should allow inbound connections if you aren't logged into Steam and the config variable is set to allow unauthenticated comms.

In the meantime, you could use this library on the server. The plain UDP protocol is compatible.

I'll keep this bug open to remind me to change this.

zpostfacto avatar Jul 11 '22 17:07 zpostfacto

Thanks! Ideally it would support SDR connections as well though :)

I guess there isn't any possibility of using this library with Steam currently? Is this something you are considering, where we could build the open parts ourselves and link it to the proprietary Steam parts?

maxha651 avatar Jul 12 '22 13:07 maxha651

SDR connections must always be authenticated, otherwise people would abuse our services.

So for SDR the server must always sign into Steam at the moment.

zpostfacto avatar Jul 12 '22 16:07 zpostfacto

Yeah, sorry I think I was a bit unclear. What I am looking for is for the server to support non-SDR unauthenticated connections as well as authenticated SDR connections.

The use-case is to have the server connect via SDR by default but still allow unauthenticated LAN connections without internet.

maxha651 avatar Jul 12 '22 18:07 maxha651

Yeah, that should be possible after we fix this issue.

zpostfacto avatar Jul 12 '22 18:07 zpostfacto