Im working with Ejabberd on OS X 10.6, with rails. I am able to connect to my ejabberd server web console on port 5280 without problems and also connect to it using iChat jabber client. But i am unable to connect to it from the console and end with a
u.connect
results in
RESOLVING:
_xmpp-client._tcp.sid-laptop (SRV)
CONNECTING:
sid-laptop:5222
SocketError: getaddrinfo: nodename nor servname provided, or not known
from /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/gems/1.8/gems/xmpp4r-0.4/lib/xmpp4r/connection.rb:66:in `initialize'
from /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/gems/1.8/gems/xmpp4r-0.4/lib/xmpp4r/connection.rb:66:in `new'
from /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/gems/1.8/gems/xmpp4r-0.4/lib/xmpp4r/connection.rb:66:in `connect'
from /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/gems/1.8/gems/xmpp4r-0.4/lib/xmpp4r/client.rb:70:in `connect'
from (irb):6
I am sure port 5222 is open which I checked with a small script. Would appreciate some help. Thanks in advance.
Just checked im unable to connect to my gmail account too. So im not really sure if i can connect to port 5222 either. I get a connection Timeout error.
RESOLVING:
_xmpp-client._tcp.gmail.com (SRV)
CONNECTING:
gmail.com:5222
^[Errno::ETIMEDOUT: Operation timed out - connect(2)
from /Library/Ruby/Gems/1.8/gems/xmpp4r-0.5/lib/xmpp4r/connection.rb:66:in `initialize'
from /Library/Ruby/Gems/1.8/gems/xmpp4r-0.5/lib/xmpp4r/connection.rb:66:in `new'
from /Library/Ruby/Gems/1.8/gems/xmpp4r-0.5/lib/xmpp4r/connection.rb:66:in `connect'
from /Library/Ruby/Gems/1.8/gems/xmpp4r-0.5/lib/xmpp4r/client.rb:70:in `connect'
from (irb):8
i was able to get this running on Ubuntu but i can't seem to understand the issue on Snow Leopard.