Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

marten-seemann
Copy link

@marten-seemann marten-seemann commented May 17, 2024

Fixes #36.

TODO:

@marten-seemann
Copy link
Author

For some reason this only works for localhost, but not for other addresses. This is not very useful...
I'll need to dig into what's going on here.

@marten-seemann
Copy link
Author

For some reason this only works for localhost, but not for other addresses. This is not very useful... I'll need to dig into what's going on here.

After some more debugging, here's what's going on:

wasip1.DialUDP("udp", "127.0.0.1:1234", "8.8.8.8:1234")

fails, whereas

wasip1.DialUDP("udp", "0.0.0.0:1234", "8.8.8.8:1234")

succeeds.

I think this makes sense, since 8.8.8.8 is actually not available on the lo interface. You need to send from a different interface.

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.

connected UDP sockets
1 participant