【发布时间】:2014-08-23 03:11:41
【问题描述】:
我已经在 EC2 上部署了 XMPP 服务器。我在客户端连接到服务器时遇到问题。服务器位于北加利福尼亚。 我无法与服务器建立稳定的连接。我可以连续连接 3 次,但第 4 次总是超时。 XMPP 服务器日志显示服务器甚至没有与客户端建立连接
我使用了 2 个客户端(Pidgin、XMPPHP php 脚本)。我使用了 2 个不同版本的 XMPP 服务器(eJabberd、MongooseIM 和我的修改),结果相同。
PHP 脚本连接的结果。
1404297313 [INFO]: Connecting to tcp://xxx-xx-xxx-xxx-xxx.us-west-1.compute.amazonaws.com:5222
PHP Warning: stream_socket_client(): unable to connect to tcp://xxx-xx-xxx-xxx-xxx.us-west-1.compute.amazonaws.com:5222 (Connection timed out) in /home/ubuntu/xmppphp/XMPPHP/XMLStream.php on line 313
1404297344 [ERROR]: Could not connect.
根据这篇文章,我从Link 尝试了 telnet。我有连接问题。
$ telnet xxx-xx-xxx-xxx-xxx.us-west-1.compute.amazonaws.com 5222
Trying xx.xxx.xxx.xxx...
telnet: Unable to connect to remote host: Connection timed out
安全组问题是不可能的,因为我根本无法连接。TCP转储不显示连接超时时传输的任何数据包。
我错过了什么吗?我在TCP tweaking 上使用过本教程,有人能指出我正确的方向吗?
【问题讨论】:
标签: amazon-web-services tcp amazon-ec2 erlang xmpp