title: iPhone EDGE/3G network port range? Anybody know?
body: <p>I am trying to access 61616 in my iPhone app and the SCReachability code indicates that I have a valid network, but I time out trying to write to 61616. Does anyone know:</p>
  
  <p>A. If the iPhone EDGE/3G network has a limited port range or isn't allowed to connect to this port?</p>
  
  <p>B. How I can check explicitly for access to this port. Here is my "is the network reachable" code (borrowed from Apple's examples), which checks for "foo.bar.com" but doesn't show how to check for "foo.bar.com:61616".</p>
  
  <p>Any help is appreciated!</p>
  
  <pre><code>- (BOOL)isDataSourceAvailable{
  static BOOL checkNetwork = YES;
  BOOL _isDataSourceAvailable = NO;
  if (checkNetwork) { // Since checking the reachability of a host can be expensive, cache the result and perform the reachability check once.
      checkNetwork = NO;
  
      Boolean success;    
      const char *host_name = "foo.bar.com";
  
      SCNetworkReachabilityRef reachability = SCNetworkReachabilityCreateWithName(NULL, host_name);
      SCNetworkReachabilityFlags flags;
      success = SCNetworkReachabilityGetFlags(reachability, &amp;flags);
      _isDataSourceAvailable = success &amp;&amp; (flags &amp; kSCNetworkFlagsReachable) &amp;&amp; !(flags &amp; kSCNetworkFlagsConnectionRequired);
      CFRelease(reachability);
  }
  return _isDataSourceAvailable;
  </code></pre>
  
  <p>}</p>