绑定socket 公网ip时报错PHP Warning: socket_bind(): unable to bind address [99]: Cannot assign requested address in /var/www/html/tcp.php on line 8

回复内容:

绑定socket 公网ip时报错PHP Warning: socket_bind(): unable to bind address [99]: Cannot assign requested address in /var/www/html/tcp.php on line 8

1、端口被占用了
2、端口处于TIME_WAIT状态
3、IP写错了

肯定是IP写错了

09-17 22:31