We have been working on Ejabberd for our Mobile application for over 6 months and have installed and managed our servers (most of which run on the Amazon EC2 setup) for a while now, but my last installation left me stumped. The thing was my installation would go through perfectly and I would be able to access my ejabberd admin console on 5280 and also chat was working with website over http_bind perfectly but was unable to connect to it through the Android and iOS ejabberd library.

I would create my client and the connect call would wait forever before timing out.

I tried reinstalling ejabberd and looked everywhere I could have possibly goofed up.

The solution to the problem was on EC2 and not the installation. Its actually an EC2 security groups issue. You need to ensure for the instance your working with, if the security group has port 5222 and if your working with server-2-server 5269 open.

The way to get this done using elastic fox is

  • click on the instance you want the port to be open
  • click on the security groups tab
  • click on the group permissions -> grant permissions button (green button with a tick mark) which would open a popup box
  • add the port (in the port field) 5222.
  • Add 0.0.0.0/0 for hosts to allow all.

Repeat the process and add it for 5269 if your working with server-2-server and your done.

Hope this is useful to someone.

 

Summary
Ejabberd and Xmpp Chat Server on AMAZON EC2. Connection Timeout issue
Article Name
Ejabberd and Xmpp Chat Server on AMAZON EC2. Connection Timeout issue
Description
The solution to the problem was on EC2 and not the installation. Its actually an EC2 security groups issue. You need to ensure for the instance your working with, if the security group has port 5222 and if your working with server-2-server 5269 open.

Comments


We have been working on Ejabberd for our Mobile application for over 6 months and have installed and managed...

Read Post

We have been working on Ejabberd for our Mobile application for over 6 months and have installed and managed...

Read Post

Leave a Reply

Your email address will not be published. Required fields are marked *