Firewall status OK:
Listening port: 2015
$this->socket = socket_create(AF_INET,SOCK_STREAM, SOL_TCP); socket_set_option($this->socket, SOL_SOCKET, SO_REUSEADDR,true); socket_bind($this->socket, 0 , $this->port); //监听端口 socket_listen($this->socket); socket_getsockname($this->socket, $ip,$port); printf("Server Open %s:%d\n",$ip,$port);
ws://127.0.0.1: 2015 and ws://192.168.1.101: 2015 can both be created.
Using external IP will cause the link to time out.