Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

fix: explicitly use remote addr for unicast UDP queries #52

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

Open
thegamecracks wants to merge 2 commits into opengsq:main
base: main
Choose a base branch
Loading
from thegamecracks:udpclient-remote-addr

Conversation

@thegamecracks
Copy link

@thegamecracks thegamecracks commented Oct 27, 2025

This fixes #51 by passing remote_addr= to loop.create_datagram_endpoint() inside UdpClient.communicate(), omitting the local_addr= argument for protocols that don't specify a source port or allow broadcasting.

This PR may have side effects that I don't know about, since I don't often use the low-level asyncio APIs or sockets in general.

Copy link
Contributor

Hornochs commented Oct 28, 2025
edited
Loading

This could indeed break things on the socket communication. I need to double check it and test it on my own in all scenarios, where unicast and broadcast communication is going on.

Still suprised me like mentioned in #51 that this behavior change in Windows.

My week is now stuffed sadly, so I need some time to verify that.

thegamecracks reacted with thumbs up emoji

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

@Hornochs Hornochs Awaiting requested review from Hornochs

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

RakNet times out when querying any hostname on Windows

AltStyle によって変換されたページ (->オリジナル) /