workermanWhat should I do if the port is blocked?
The reason why the WorkerMan WebSocket port is unavailable
I just made a demo chat room using workerMan. It feels quite fun. I decided to introduce the front-end to those who don’t understand the background. Pretend to be an uncle,
1. The local client and server are both 127.0.0.1:2346. When I opened two browsers for testing, it ran very happily. At the same time, I changed the client and server to 192.168. .5.18:2346 network segment
2. As a result, after my colleague’s LAN accessed the 80 port demo of my machine, an error was reported and he even laughed at me sarcastically. Do you want to show me the bug?
3. Directly look at the solution results! ! Solved result! ! ! result! ! !
Several big pitfalls you will encounter:
1. Firewall problem (it is recommended to turn it off)
2. Workerman’s server is not running (the probability is extremely low )
3. Please set it directly in the server to 0.0.0.0:port (save worry) and the client to server IP:port
4. If there is no connection, check the outbound Whether the port is set for the rules and inbound rules, the telnet command can be tested
5. The problem that troubled me for two hours Adsafe Net Master intercepted it, uninstall it decisively, and never use it again
Display Picture
Backend Settings
Related recommendations: "workerman Tutorial"
The above is the detailed content of What should I do if the worker port is blocked?. For more information, please follow other related articles on the PHP Chinese website!