简体   繁体   English

TCP套接字中的“连接被拒绝”?

[英]'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? 因此,我们正在为当前的IM编码一个Web聊天客户端,而我有一个问题,socket_connect将无法连接,并抛出“错误警告:socket_connect():无法连接[111]:/ home / shadowri中的连接被拒绝/public_html/zapf/personal.php,第29行“,我将如何使其完全连接,因为它必须连接至套接字并在此后发送一次握手,然后如何在每次收到消息时读取它? i know its listening on that tcp socket, as our pc client uses it and simply connects directly then sends the handshake? 我知道它在那个tcp套接字上监听,因为我们的PC客户端使用它并且直接直接连接然后发送握手? am i missing something" 我错过了什么吗?

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

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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