Sending Multicast UDP by GCDAsyncUdpSocket fails, no activity in Wireshark
Asked Answered
M

1

1

It works okay for any known IP like this:

[udpSocket sendData:datatosend toHost:@"192.168.1.113" port:port withTimeout:-1 tag:0];

But when i'm trying to use broadband multicast, nothing logged and nothing goes on

[udpSocket sendData:datatosend toHost:@"192.168.1.255" port:port withTimeout:-1 tag:0];

receiving works okay, i also tried 255.255.255.255 - the same. it doesn't give any error.

Miltiades answered 15/3, 2012 at 21:15 Comment(0)
M
1

I found the solution:

[udpSocket enableBroadcast:YES error:nil]; 
Miltiades answered 16/3, 2012 at 7:8 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.