Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't do unauthenticated UDP connections #244

Open
maxha651 opened this issue Jul 11, 2022 · 5 comments
Open

Can't do unauthenticated UDP connections #244

maxha651 opened this issue Jul 11, 2022 · 5 comments
Assignees
Labels
steamworks Only affects the Steamworks SDK, not the opensource version

Comments

@maxha651
Copy link

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.

@zpostfacto
Copy link
Contributor

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 zpostfacto self-assigned this Jul 11, 2022
@zpostfacto zpostfacto added the steamworks Only affects the Steamworks SDK, not the opensource version label Jul 11, 2022
@maxha651
Copy link
Author

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?

@zpostfacto
Copy link
Contributor

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.

@maxha651
Copy link
Author

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.

@zpostfacto
Copy link
Contributor

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
steamworks Only affects the Steamworks SDK, not the opensource version
Projects
None yet
Development

No branches or pull requests

2 participants