apnsport连接问题

I am trying to send push notification in my ios app using php backside coding.

I am using this to connect:

stream_context_set_option($ctx, 'ssl', 'local_cert', 'apns-dev.pem'); 
stream_context_set_option($ctx, 'ssl', 'passphrase', '');
$fp = stream_socket_client('ssl://gateway.sandbox.push.apple.com:2195', $err, $errstr, 60, STREAM_CLIENT_CONNECT, $ctx);

On printing $err I am getting 110.

Can anybody please tell me the reason for this connection failure and the meaning of error 110?

Searching for "stream_socket_client 110" on Stackoverflow and Google returns dozens of hints at what error 110 means. The most common explanation seems to be that ports 2195 and 2196 are blocked by a local firewall.