title: UDP packets are not sent on the iPhone
body: <p>I use this library: <a href="https://github.com/robbiehanson/CocoaAsyncSocket" rel="nofollow">https://github.com/robbiehanson/CocoaAsyncSocket</a></p>
  
  <p>My test code:</p>
  
  <pre><code>#import &lt;UIKit/UIKit.h&gt;
  @class GCDAsyncUdpSocket;
  
  @interface ThirdViewController : UIViewController
  {
      GCDAsyncUdpSocket *udpSocket;
  }
  </code></pre>
  
  <p>.m:</p>
  
  <pre><code>#import "ThirdViewController.h"
  #import "DDLog.h"
  #import "DDTTYLogger.h"
  #import "GCDAsyncUdpSocket.h"
  static const int ddLogLevel = LOG_LEVEL_VERBOSE;
  
  @implementation ThirdViewController
  - (void)viewDidLoad
  {
      [super viewDidLoad];
      [DDLog addLogger:[DDTTYLogger sharedInstance]];
      udpSocket = [[GCDAsyncUdpSocket alloc] initWithDelegate:self delegateQueue:dispatch_get_main_queue()];
  
      [udpSocket bindToPort:7744 error:nil];
      [udpSocket beginReceiving:nil];
      [udpSocket enableBroadcast:YES error:nil];
      //[udpSocket connectToHost:@"127.0.0.1" onPort:55544 error:nil];
  
      NSData *data = [@"test" dataUsingEncoding:NSUTF8StringEncoding];
  
      //[udpSocket sendData:data withTimeout:-1 tag:0];
      [udpSocket sendData:data toHost:@"127.0.0.1" port:55544 withTimeout:-1 tag:0];
  }
  </code></pre>
  
  <p>But the package is not sent. I used this packet sniffer: <a href="http://sourceforge.net/projects/packetpeeper/" rel="nofollow">http://sourceforge.net/projects/packetpeeper/</a></p>
  
  <p>In the library there is an example of a client (for Mac), his packages I see. I tried to run the application on a real device, but nothing was sent, too (address, of course, was the other). What is the problem?</p>