in reply to Using Net::Ping for broadcast address
Try it with .255 for the last octet, not .0. Although modern IP stacks are supposed to treat an all-zero host portion as a broadcast address, there are still enough stacks around that only treat all-ones as broadcast that it's a little more reliable/portable to use that.
Another possibility: Do you have a 255.255.255.0 netmask on the interface(s) in question? It would have to be for a last octet of all-ones or all-zeros to be treated as broadcast.
|