What is the equivalent of 127.255.255.255 for OS/X machines so I can test broadcast udp packets without a network?
Posted
by
JohnPristine
on Server Fault
See other posts from Server Fault
or by JohnPristine
Published on 2013-11-09T22:01:04Z
Indexed on
2013/11/10
3:57 UTC
Read the original article
Hit count: 438
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.
© Server Fault or respective owner