Broadcasting is, by definition, a transmission function.
If your UDP socket listens on a specific port and is bound to INADDR_ANY(aka 0.0.0.0), it will receive all packets sent to this port, regardless of whether they were sent to the local IP addresses of a specific computer (i.e., unicast) or to The broadcast address of the local subnet.
source
share