unable to connect to ejabberd

80 views
Skip to first unread message

rishav

unread,
Oct 12, 2009, 3:06:01 PM10/12/09
to Orbited Discussion
Hi,

I am using Orbited and ejabberd, both are running on my localhost. I
have tested ejabberd using Psi and a ruby based client called xmpp4r,
seems to work just fine

I am using ubuntu 9.04, ejabberd is running in its default
configuration and my domain name is set to 'rishav-laptop' ( so
usernames are like "rishav@rishav-laptop" )

I am trying to connect to ejabberd using orbited and js.io. My test
code ( copied from the xmpp demo example ) and orbited.cfg are here
http://pastie.org/pastes/651737

Orbited doesn't respond with any connection success or connection
failure messages. in the log I see that its able to connect to the
localhost:5280 ( where my jabber server is running , orbited is
running on localhost:8000 )

and after that its unable to talk to it.

I have even tried changing the xmpp.connect statement in the example
provided orbited to connect to "localhost", 5280 and ran it from
http://locahost:8000/static/demos/xmpp/ and provide domain as 'rishav-
laptop' but it doesn't respond after that.

orbited says

10/13/09 00:28:21:931 ACCESS new connection from 127.0.0.1:54513 to
localhost:5280

ejabberd log also says

=INFO REPORT==== 2009-10-13 00:28:21 ===
I(<0.270.0>:ejabberd_listener:116) : (#Port<0.398>) Accepted
connection {{127,0,0,1},51572} -> {{127,0,0,1},5280}

After this there is nothing. The port no. in each of the logs don't
match. I have very little idea about how this works so just providing
as much detail i can.

Please let me know how should i go about debugging this further, none
of the orbited log suggest anything either.

Also all my test files are run at http://localhost/xmpp_test/

Thanks
Rishav

Jim Puls

unread,
Oct 12, 2009, 4:13:56 PM10/12/09
to orbite...@googlegroups.com
On Oct 12, 2009, at 12:06 PM, rishav wrote:

> I am using Orbited and ejabberd, both are running on my localhost. I
> have tested ejabberd using Psi and a ruby based client called xmpp4r,
> seems to work just fine
>
> I am using ubuntu 9.04, ejabberd is running in its default
> configuration and my domain name is set to 'rishav-laptop' ( so
> usernames are like "rishav@rishav-laptop" )
>
> I am trying to connect to ejabberd using orbited and js.io. My test
> code ( copied from the xmpp demo example ) and orbited.cfg are here
> http://pastie.org/pastes/651737
>
> Orbited doesn't respond with any connection success or connection
> failure messages. in the log I see that its able to connect to the
> localhost:5280 ( where my jabber server is running , orbited is
> running on localhost:8000 )

Are you sure that your server is listening for XMPP connections on
this port? ejabberd usually uses 5280 for its own built-in Comet
support. You most likely want to be connecting to port 5222, since
you're bypassing this with Orbited.

Rishav Rastogi

unread,
Oct 13, 2009, 8:52:36 AM10/13/09
to orbite...@googlegroups.com
Thanks Jim, 

I was able to get that working from 5222, now my demo script runs fine.

I have another question.

I wanted to see If I could have multiple tabs with the same chat session open in the browser.

When I try this with previous socket connection  also get disconnected, is there a way to manage that ?

Thanks
Rishav
--
Rishav Rastogi

"To intelligent people actions are merely experiments / questions .... success and failure are answers if not all"

Cell : +91 9008103913
Yahoo : rishav_work
Gtalk : rishav.rastogi
Skype : rishavrastogi
Reply all
Reply to author
Forward
0 new messages