From: Siddharth Ravichandran on
Im using xmpp4r and ejabberd and my server runs on EC2 on an elastic IP.

My problem is I am unable to connect to the server and my requests
timeout.

On certain occasions the requests go through but the registrations dont
reflect on the admin console. Most of the time i get a request timeout
error.

My jabber server runs on a subdomain jabber.example.com.

Snippet

>> client= Jabber::Client.new(Jabber::JID.new("admin(a)jabber.example.com"))
>> ... Successful connection ..
>> client.connect
Errno::ETIMEDOUT: Connection timed out - connect(2)
from
/usr/lib/ruby/gems/1.8/gems/xmpp4r-0.5/lib/xmpp4r/connection.rb:66:in
`initialize'
from
/usr/lib/ruby/gems/1.8/gems/xmpp4r-0.5/lib/xmpp4r/connection.rb:66:in
`new'
from
/usr/lib/ruby/gems/1.8/gems/xmpp4r-0.5/lib/xmpp4r/connection.rb:66:in
`connect'
from /usr/lib/ruby/gems/1.8/gems/xmpp4r-0.5/lib/xmpp4r/client.rb:70:in
`connect'
from (irb):4

Im completely lost now I have tried reinstalling ejabberd but i keep
having this issue. Am i missing something basic here?

Thanks in advance
--
Posted via http://www.ruby-forum.com/.