stream_socket_client unable to connect (connection timed out)
I had fixed the issue by opening the port 2195 on the production server. You can verify by following command $telnet gateway.push.apple.com 2195
-bash-3.2# telnet gateway.push.apple.com 2195
Trying 17.149.38.141...
Connected to gateway.push.apple.com (17.149.38.141).
Escape character is '^]'.
Connection closed by foreign host.
stream_socket_client time out
Try to check allow_url_fopen
.
This option enables the URL-aware fopen wrappers that enable accessing URL object like files.
See: https://php.net/manual/en/filesystem.configuration.php
Related Topics
Compile Error: "G++: Error Trying to Exec 'Cc1Plus': Execvp: No Such File or Directory"
Find Multiples of a Number in PHP
Mysql_Connect VS MySQL_Pconnect
How to Use Prepared Statements with Postgres
How to Remove All Numbers from String
Php: Whats the Total Length of a Post Global Variable
Why Is the PHP String Concatenation Operator a Dot (.)
Is It Really That Wrong Not Using Setters and Getters
How to Get the Home Directory from a PHP Cli Script
Laravel Many to Many Self Referencing Table Only Works One Way
Inet_Aton() and Inet_Ntoa() in PHP
How to Eliminate PHP5 Strict Standards Errors
Cannot Start Session Without Errors in PHPmyadmin