iPhone: Connection refused error while connection Apple's Push Notification Service
问题 I have been scratching my head since long now to get rid of following error message. Warning: stream_socket_client() [function.stream-socket-client]: unable to connect to ssl://gateway.push.apple.com:2195 (Connection refused) I have tried multiple times generating the correct certificate and made sure that project is signed with the correct bundle identifier. I have also tried using testing script PHP(https://devforums.apple.com/message/50461) and Python (http://stackoverflow.com/questions