when setting up a socket via dgram.createSocket('udp4'); and NOT binding it to a specific port I do receive broadcasted packets which were sent to 255.255.255.255
But when I’m binding the same socket to the specific IP of my interface this.server.bind(67, host); I will NOT receive these broadcasted packets. Is this a normal behavior?
when setting up a socket via dgram.createSocket(‘udp4’); and NOT binding it to a specific
Share
The Javadoc for java.net.DatagramSocket says:
This is a pretty clear indication that the behaviour is platform-dependent, so Javascript sockets would be afflicted the same way.
According to my testing, Windows Vista 64 does not behave as described in the second sentence (i.e. does not receive broadcasts unless bound to INADDR_ANY).