title: Testing apple push notification service
body: <p>i tried "easy-ASPN" <a href="http://www.easyapns.com" rel="nofollow">http://www.easyapns.com</a> on my server..</p>
  
  <p>this is the php code for connecting apple server:</p>
  
  <pre><code>    $ctx = stream_context_create();
      stream_context_set_option($ctx, 'ssl', 'local_cert', 'apns.pem');
      $fp = stream_socket_client('ssl://gateway.push.apple.com:2195', $error, $errorString, 100, (STREAM_CLIENT_CONNECT|STREAM_CLIENT_PERSISTENT), $ctx);
  </code></pre>
  
  <p>i am ensure that openssl is enabled in php configuration..</p>
  
  <p>server administrator told me thad he opened ports: 2196, 2196</p>
  
  <p>but this php code always returns:</p>
  
  <pre><code>Failed to connect to APNS: 110 Connection timed out.
  </code></pre>
  
  <p>i tried to test the connection to apple server from the shell,</p>
  
  <p>i have wrote:</p>
  
  <pre><code>telnet gateway.sandbox.push.apple.com 2195
  </code></pre>
  
  <p>but it returned:</p>
  
  <pre><code>-bash: telnet: command not found
  </code></pre>
  
  <p>i am really don't know how to solve this problem... </p>