简体   繁体   English

无法打开与主机的连接,在端口23上:连接失败

[英]could not open connection to the host, on port 23: Connect failed

I have extremely simple chat server (100 lines of code on Java) and it is working properly. 我有非常简单的聊天服务器(Java上有100行代码),它运行正常。 When I'm testing it with Telnet on localhost everything is just fine. 当我在localhost上使用Telnet测试它时,一切都很好。 When I asked some of my friends to test it with telnet ( telnet <myIP> <port> , the port I assigned is 5555, server is running on my PC with static IP) everything is just fine too, but one of my friends received the error 当我让一些朋友用telnet测试它时( telnet <myIP> <port> ,我分配的端口是5555,服务器在我的PC上运行静态IP)一切都很好,但是我的一个朋友收到了错误

Could not open connection to the host, on port 23: Connect failed 无法在端口23上打开与主机的连接:连接失败

when he was trying to connect. 当他试图连接时。 Every firewall, anti-virus and anti-spyware software is turned off from both sides. 每个防火墙,防病毒和反间谍软件都从双方关闭。 Why could some of my friends connect but not him? 为什么我的一些朋友会联系而不是他呢? Where is the problem: is it on the server or his PC? 问题出在哪里:是在服务器上还是在他的PC上?

I had a similar issue before and what it turns out to be is the syntax. 我以前遇到过类似的问题,结果是语法。 When I do: 当我做:

telnet 192.168.10.10:3333 telnet 192.168.10.10:3333

I will get the port 23 error but if I type in: 我将收到端口23错误,但如果我输入:

telnet 192.168.10.10 3333 telnet 192.168.10.10 3333

I will get correct result. 我会得到正确的结果。

Try to make the telnet connection as 尝试将telnet连接设为

telnet 192.168.10.10 3333

without using : 不使用:

Your friend's Telnet client is obviously attempting to connect to port 23 , not 5555 or 43839, since that's what it says in the error message he is getting. 您朋友的Telnet客户端显然正在尝试连接到端口23 ,而不是5555或43839,因为这就是他在收到的错误消息中所说的内容。

Ask your friend to check the documentation for the Telnet client he's using, and make sure he's specifying the port the proper way. 请您的朋友查看他正在使用的Telnet客户端的文档,并确保他以正确的方式指定端口。

暂无
暂无

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

相关问题 无法连接到SMTP主机:…,端口:25? - Could not connect to SMTP host: …, port: 25? grails:无法连接到SMTP主机:*********,端口:25 - grails : Could not connect to SMTP host: *********, port: 25 无法连接到SMTP主机:smtp.gmail.com,port:587; 嵌套异常是:java.net.ConnectException:连接超时:连接 - Could not connect to SMTP host: smtp.gmail.com, port: 587; nested exception is: java.net.ConnectException: Connection timed out: connect 无法连接到SMTP主机:{remote-server},port:{port},响应:-1 - Could not connect to SMTP host: {remote-server}, port: {port}, response: -1 通道3:打开失败:连接失败:连接被拒绝 - channel 3: open failed: connect failed: Connection refused 邮件服务器连接失败; 嵌套异常是 com.sun.mail.util.MailConnectException:无法连接到主机,端口:localhost,25; 超时-1; - Mail server connection failed; nested exception is com.sun.mail.util.MailConnectException: Couldn't connect to host, port: localhost, 25; timeout -1; 无法连接到服务器。 检查主机名和端口值是否正确 - Could not connect to server. Check that the host name and port values are correct 无法连接到SMTP主机:smtp.gmail.com,端口:465 - could not connect to smtp host:smtp.gmail.com, port:465 无法连接到 smtp 主机 ovh 服务器端口 465 - Could not connect to smtp host ovh server port 465 回复邮件时无法连接到SMTP主机:localhost,端口:25- - Could not connect to SMTP host: localhost, port: 25 - while REPLYing to mail
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM