the php project is deployed on docker. The master node returns the websocket server built by Swoole at port 10028 and listens on port 9502. The client failed to connect using IP plus port 9502. How to solve this problem
the php project is deployed on docker. The master node returns the websocket server built by Swoole at port 10028 and listens on port 9502. The client failed to connect using IP plus port 9502. How to solve this problem
check whether the ip you are listening to on your server is 0.0.0.0
.$http = new swoole_http_server("0.0.0.0", 9501);
The problem has been solved, just add a new tcp port to the cloud platform built by docker in the project.
download projects during manual installation and composer installation, just choose one at random. What did docker installation and docker-compose installation do later? Please explain, thank you! ...