我不是networking人,所以我很抱歉,如果我的问题是愚蠢的。
我在Amazon EC2上安装了两台Ubuntu机器。 我需要通过端口9300从一个“通话”到另一个。在我的接收机上,我从命令行运行以下命令。
netstat -ntlup | grep 9300
在我的客户端机器上,我从命令行运行以下命令。
telnet [otherIPAddress] 9300
在我的客户端机器上input该命令后,我看到以下内容:
Trying [otherIPAddress]... Connected to [otherIPAddress]. Escape character is '^]'.
然后,我在命令行input“Hello World”。 按“Enter”后立即看到以下内容:
Connection closed by foreign host.
为什么我会得到这个错误? 我真的需要能够得到这个连接运行。 对于我的生活,我不知道为什么我不能沟通。
这看起来像预期的那样工作,但无论在[otherIPAddress]:9300上运行什么[otherIPAddress]:9300都不期待Hello World\n因此它断开了连接。