Skip to content

Conversation

@thegamecracks
Copy link
Contributor

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.

@Hornochs
Copy link
Contributor

Hornochs commented Oct 28, 2025

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.

@Hornochs
Copy link
Contributor

I'm currently Testing some games. The good news:

Broadcasts Games like Renegade X are still working. I need to test UT3 and Source games too and then I can give an opinion about this. Next step would be to test Windows. We'll see it. I'll update you ASAP

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.

RakNet times out when querying any hostname on Windows

3 participants