What is the equivalent of 127.255.255.255 for OS/X machines so I can test broadcast udp packets without a network?
- by JohnPristine
I am trying to test my program that makes use of broadcast UDP (not multicast!). In Linux, I can use the 127.255.255.255:64651 address and everything works beautifully, in other words, I send a packet to 127.255.255.255:64651 and multiple clients listening on that port get the packet. A real broadcast example!
Unfortunately on my OS/X machine (Mountain Lion) the same example does not work.
Is there any way I can get 127.255.255.255 to work on mac machines? Any other solution to get broadcast working on my mac machine without a network?
Note: It has to be broadcast, not multicast.