-
Notifications
You must be signed in to change notification settings - Fork 29.8k
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
[windows]dgram socket not receiving on network without internet connection #17980
Comments
Can you expand? Post wireshark or tcpdump output if you have it. |
@bnoordhuis sure will do this. Can't do it before monday though |
@bzoz about the first one. I don't if it's relevant but i do get the "listening" event, but no message after that. Also binding to '0.0.0.0' does work when the network as internet connection |
Here is the export wireshark report. |
I see PONG datagrams being broadcasted from 192.138.143.1:2900 to 192.138.143.255:2900 that advertise something about port 7265. If this...
...means wireshark receives packets while node.js does not (on the same machine), then you probably have a firewall or routing rule that drops the packets, or something to that effect. Tools like wireshark and tcpdump are not affected by that because they run very early in the filter chain and they put the interface into promiscuous mode so they can capture all network traffic, not just deliverable traffic. Since I don't see anything that indicates a node.js bug I'm going to close this out but if you have evidence to the contrary (say, a python script that works where node.js does not), then please post it. If you have follow-up questions, then by all means post them to the help repo. Cheers. |
@bnoordhuis I tried without the firewall and it does the same. And sorry didn't know about the help repo. |
I have a server running on a raspberry PI.
that server regularly broadcast over all its interfaces.
that server also publish an adhoc network using hostapd
Now i have clients apps on Windows/Macos that should receive the broadcast using dgram sockets.
Everything works perfectly on macos.
On windows in works when both are the same network with internet connection.
Now when the windows client (windows 10, nodejs 8.6.0) is connected to the Pi Adhoc network the dgram socket does not see the messages. It binds correctly but that s it.
I know this issue is within nodejs because wireshark correctly sees the UDP packets and everything is good.
The client code is as simple as this:
I am not sure it s related to internet but that's the only thing i see.
I tried with a custom lookup method too but it does not seem to change anything.
Any help would be appreciated.
Thanks
The text was updated successfully, but these errors were encountered: