Warning: stream_socket_client() [function.stream-socket-client]: unable to connect to ssl://gateway.sandbox.push.apple.com:2195 (Connection timed out) in /myhost/user/public_html/mywebsite/php/classes/class_APNS.php on line 401

1,441 views
Skip to first unread message

Eyal Erez

unread,
Aug 13, 2011, 11:51:09 AM8/13/11
to Easy APNs
Hi guys,
I'm getting the device to register , but I can't send the push.
Is this a port issue I need to configure with my host?
Here's the full error from ?task=fetch
Thanks!


Warning: stream_socket_client() [function.stream-socket-client]:
unable to connect to ssl://gateway.sandbox.push.apple.com:2195
(Connection timed out) in /home1/###/public_html/###/php/classes/
class_APNS.php on line 401

Notice: Failed to connect to APNS: 110 Connection timed out. 1)
APNS::__construct -> File: apns_test.php (line 55) 2)
APNS::_fetchMessages -> File: class_APNS.php (line 217) 3)
APNS::_pushMessage -> File: class_APNS.php (line 376) 4)
APNS::_triggerError -> File: class_APNS.php (line 405) in /home1/###/
public_html/###/php/classes/class_APNS.php on line 509

Warning: fclose(): supplied argument is not a valid stream resource
in /home1/###/public_html/###/php/classes/class_APNS.php on line 418

Warning: stream_socket_client() [function.stream-socket-client]:
unable to connect to ssl://feedback.sandbox.push.apple.com:2196
(Connection timed out) in /home1/###/public_html/###/php/classes/
class_APNS.php on line 435

Notice: Failed to connect to device: 110 Connection timed out. 1)
APNS::__construct -> File: apns_test.php (line 55) 2)
APNS::_fetchMessages -> File: class_APNS.php (line 217) 3)
APNS::_pushMessage -> File: class_APNS.php (line 376) 4)
APNS::_checkFeedback -> File: class_APNS.php (line 420) 5)
APNS::_triggerError -> File: class_APNS.php (line 437) in /home1/###/
public_html/###/php/classes/class_APNS.php on line 509

Warning: fread(): supplied argument is not a valid stream resource in /
home1/###/public_html/###/php/classes/class_APNS.php on line 438

Warning: fclose(): supplied argument is not a valid stream resource
in /home1/###/public_html/###/php/classes/class_APNS.php on line 447

Martin Schilliger

unread,
Feb 2, 2012, 7:17:04 AM2/2/12
to easy...@googlegroups.com
Use this to generate a .pem-Certificate out of the Apple .cer:
Reply all
Reply to author
Forward
0 new messages