title: Error Domain=NSURLErrorDomain Code=-1003 "A server with the specified hostname could not be found
body: <p>I get this error when I try running the app on a device. I do not get this error when I run it on the simulator and the post request works fine. This is code snippet I have:</p>
  
  <pre><code>NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:url    cachePolicy:NSURLCacheStorageNotAllowed timeoutInterval:300.f];
  [request setHTTPMethod:@"POST"];
  
  NSData* data = [paramString dataUsingEncoding:NSUTF8StringEncoding];
  [request setHTTPBody:data];
  [request setValue:@"application/x-www-form-urlencoded" forHTTPHeaderField:@"Content-Type"];
  NSURLConnection *connection = [[NSURLConnection alloc] initWithRequest:request delegate:self];
  [connection start];
  </code></pre>
  
  <p>Any help is appreciated. Thanks</p>