欢迎您访问程序员文章站本站旨在为大家提供分享程序员计算机编程知识!
您现在的位置是: 首页  >  后端开发

绑定socket公网ip时报错socket_bind():unable to bind address [99]

程序员文章站 2022-05-12 11:56:39
...
绑定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写错了

相关标签: socket php