嘿家伙我正在运行这台服务器它在我的Mac上运行得很好。 但是,当我连接到我的Mac上运行的服务器时,通过我的Windows计算机上的telnet,所有文本都是倾斜的,输入是单个字符。 非常感谢帮助。
先谢谢你。
Hey guys I'm running this server It runs great on my mac. But when I connect to the server, which is running on my mac, via telnet on my windows computer all the text is skew and input is in single characters. Help would be greatly appreciated.
Thank you in advance.
最满意答案
默认情况下,您的telnet客户端看起来不以线路模式运行。 当您尝试键入密码时,它会读取第一个字符,服务器会将其与预期密码进行比较:
$ telnet localhost 8000 Trying 127.0.0.1... Connected to localhost. Escape character is '^]'. Password:RPassword rejected:RConnection closed by foreign host.尝试使用netcat http://en.wikipedia.org/wiki/Netcat 。 它是行缓冲的:
$ nc localhost 8000 Password:Rushabh [me]: has joined the chattest [me]:test second test [me]:second test如果你真的想使用telnet,你可以改变你的服务器来处理逐字符输入,或者尝试转义(^])并设置mode line (出于某种原因,我没有成功。我正在使用由Cygwin项目分发的telnet客户端。)
Looks like your telnet client does not operate in line mode by default. When you try to type the password it reads the first character and your server compares it with the expected password:
$ telnet localhost 8000 Trying 127.0.0.1... Connected to localhost. Escape character is '^]'. Password:RPassword rejected:RConnection closed by foreign host.Try using netcat http://en.wikipedia.org/wiki/Netcat. It is line buffered:
$ nc localhost 8000 Password:Rushabh [me]: has joined the chattest [me]:test second test [me]:second testIf you really want to use telnet, you can either change your server to deal with character by character input, or try escaping (^]) and set mode line (For some reason, I was not successful with this. I'm using the telnet client distributed by the Cygwin project.)
更多推荐
发布评论