Hi all,
I can't receive UDP broadcast packets from the
local network. The local network is 2.x.x.x, mask 255.0.0.0. The Firewall is off
and I don't use DHCP of course.
I have an application running on a PC
that broadcasts UDP packets to 2.255.255.255 and I can receive it with my
PC client. I developed a Mac client with Open Transport. I'm working on OSX (but
it have to be compatible and for a lot of reasons I have to use OT). I have
no error code.
I don't receive anything on my Mac client with the
broadcast adress. But I receive the UDP packets if I set the PC application
sending packets to the IP of the Mac computer (2.0.0.7).
Why can't I receive broadcast packets
?
I can see the incoming packets with
netstat.
I added the option IP_BROADCAST with
OTOptionManagement but it's only usefull to send brodcast.
I'm using SyncSockets in non blocking
mode.
Is there another option to set to receive messages
sent to broadcast address ?
Has it anything to do with Synchronous / Async
?
Thanks a lot,
Matthieu Beghin
|