简体   繁体   中英

'Connection refused' in tcp socket?

So, we are coding a web chat client for our current IM, and i have one issue, socket_connect will NOT connect, and throws the "error Warning: socket_connect(): unable to connect [111]: Connection refused in /home/shadowri/public_html/zapf/personal.php on line 29" how would i get it to connect exactly, as it has to connect to the socket and send a handshake after that, then how would i get it to read every time they receive an message? i know its listening on that tcp socket, as our pc client uses it and simply connects directly then sends the handshake? am i missing something"

途中有防火墙,或者您尝试连接的IP:端口没有监听。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM