I created Google Cloud Virtual Machine instance with bitnami LAMP to launch PHP, MySQL and apache.
- I've allowed firewall on port 8086 in Google Cloud Platform.
I created two files:
server.php, which is
- stored in google cloud
- create server socket on port 8086
- run using SSH with PHP-CLI
- socket is binding and listening to port 8086 successfully
client.php, which is
- stored in my local PC
- try to connect to IP and PORT(8086) of Google Cloud Instance.
Now problem is, when client.php is trying to connect to server socket on port 8086, it took too long time and then shows error saying that : Connection Timed Out
- Any reference regarding web socket communication on google cloud platform ?
- Is there any other cost efficient way to do real-time communnication ?
- Or should I have to try another VPS like Digital Ocean ?