Erlang Mailing Lists

Author Message

<  Ejabberd mailing list  ~  Using ejabberd with iChat

Guest
Posted: Sun Oct 01, 2006 12:23 am Reply with quote
Guest
Hi all,

I've downloaded the latest release of ejabberd (1.1.2) and installed
it with the Mac OS X installer. I can connect to the admin page using
bc@bc.local after I start the server, and I can connect to the
ejabberd server when I set up an account for bc@bc.local using the Psi
jabber client; however, I can't seem to connect to it when I'm using
iChat. I can connect to other (remote) Jabber servers using iChat
(including another ejabberd server); however, I can not connect to my
local ejabberd server.

Does anyone know why iChat isn't able to connect to a local instance
of ejabberd? I've tried various combinations of server settings in the
iChat account setup preferences; however, nothing I do seems to work.

Any help or suggestions would be appreciated!

Thanks,
Bill Clementson
_______________________________________________
ejabberd mailing list
ejabberd@jabber.ru
http://lists.jabber.ru/mailman/listinfo/ejabberd
Post recived from mailinglist
Guest
Posted: Sun Oct 01, 2006 6:10 am Reply with quote
Guest
On 01/10/2006, at 10:23 AM, Bill Clementson wrote:

> I've downloaded the latest release of ejabberd (1.1.2) and installed
> it with the Mac OS X installer. I can connect to the admin page using
> bc@bc.local after I start the server, and I can connect to the
> ejabberd server when I set up an account for bc@bc.local using the Psi
> jabber client; however, I can't seem to connect to it when I'm using
> iChat. I can connect to other (remote) Jabber servers using iChat
> (including another ejabberd server); however, I can not connect to my
> local ejabberd server.

At a guess, ejabberd may not be binding to your localhost address
(127.0.0.1), and may instead only be binding to the "real" network
addresses on your machine. You may want to double-check this, using
netstat or a similar tool. Perhaps try using the IP address of a
network adapter in iChat.


--
% Andre Pang : trust.in.love.to.save <http://www.algorithm.com.au/>



_______________________________________________
ejabberd mailing list
ejabberd@jabber.ru
http://lists.jabber.ru/mailman/listinfo/ejabberd
Post recived from mailinglist
Guest
Posted: Sun Oct 01, 2006 6:34 pm Reply with quote
Guest
> > I've downloaded the latest release of ejabberd (1.1.2) and installed
> > it with the Mac OS X installer. I can connect to the admin page using
> > bc@bc.local after I start the server, and I can connect to the
> > ejabberd server when I set up an account for bc@bc.local using the Psi
> > jabber client; however, I can't seem to connect to it when I'm using
> > iChat. I can connect to other (remote) Jabber servers using iChat
> > (including another ejabberd server); however, I can not connect to my
> > local ejabberd server.
>
> At a guess, ejabberd may not be binding to your localhost address
> (127.0.0.1), and may instead only be binding to the "real" network
> addresses on your machine. You may want to double-check this, using
> netstat or a similar tool. Perhaps try using the IP address of a
> network adapter in iChat.

I had a look with "netstat -r" (not sure if this is the right switch
or not) and it showed the following:
Routing tables

Internet:
Destination Gateway Flags Refs Use Netif Expire
default 192.168.0.1 UGSc 13 34 en0
127 localhost UCS 0 0 lo0
localhost localhost UH 19 188189 lo0
169.254 link#4 UCS 0 0 en0
192.168.0 link#4 UCS 3 0 en0
192.168.0.1 0:9:5b:f8:da:6d UHLW 11 0 en0 1123
192.168.0.2 0:d:93:c8:d8:12 UHLW 0 0 en0 886
192.168.0.3 localhost UHS 0 899 lo0
192.168.0.255 ff:ff:ff:ff:ff:ff UHLWb 0 6 en0

Internet6:
Destination Gateway Flags Netif Expire
localhost link#1 UHL lo0
localhost Uc lo0
localhost link#1 UHL lo0
link#4 UC en0
bc.local 0:11:24:75:fb:da UHL lo0
ff01:: localhost U lo0
ff02::%lo0 localhost UC lo0
ff02::%en0 link#4 UC en0

So, I changed the iChat server from bc.local to 127.0.0.1
Unfortunately, that didn't work either. So, I reinstalled ejabberd
using localhost instead of bc.local. Again, after starting ejabberd, I
was able to access the admin page with bc@localhost and also access
the server by logging on as bc@localhost using Psi. However, iChat
still refuses to connect.

Any other ideas?

Thanks,
Bill
_______________________________________________
ejabberd mailing list
ejabberd@jabber.ru
http://lists.jabber.ru/mailman/listinfo/ejabberd
Post recived from mailinglist
Guest
Posted: Sun Oct 01, 2006 7:02 pm Reply with quote
Guest
On Sun, 1 Oct 2006, Bill Clementson wrote:

> > At a guess, ejabberd may not be binding to your localhost address
> > (127.0.0.1), and may instead only be binding to the "real" network
> > addresses on your machine.
>
> I had a look with "netstat -r" (not sure if this is the right switch
> or not) and it showed the following:

Use netstat -a | grep LISTEN to check for listening daemons.

Tony.
--
f.a.n.finch <dot@dotat.at> http://dotat.at/
FORTIES CROMARTY FORTH: SOUTHERLY 6 TO GALE 8, DECREASING 5 OR 6 LATER. RAIN
OR SHOWERS. MODERATE OR GOOD.
_______________________________________________
ejabberd mailing list
ejabberd@jabber.ru
http://lists.jabber.ru/mailman/listinfo/ejabberd
Post recived from mailinglist
Guest
Posted: Sun Oct 01, 2006 7:16 pm Reply with quote
Guest
> > > At a guess, ejabberd may not be binding to your localhost address
> > > (127.0.0.1), and may instead only be binding to the "real" network
> > > addresses on your machine.
> >
> > I had a look with "netstat -r" (not sure if this is the right switch
> > or not) and it showed the following:
>
> Use netstat -a | grep LISTEN to check for listening daemons.

Ok, I did the following:
/Applications/ejabberd-1.1.2/bin $ start
/Applications/ejabberd-1.1.2/bin $ netstat -a | grep LISTEN
tcp4 0 0 *.5298 *.* LISTEN
tcp4 0 0 *.4369 *.* LISTEN
tcp4 0 0 localhost.ipp *.* LISTEN
tcp4 0 0 localhost.netinfo-loca *.* LISTEN

I'm not sure whether this is telling me anything though (in the
context of my problem with getting iChat to connect to my local
ejabberd server); although this may be due to my lack of experience
with netstat.

- Bill
_______________________________________________
ejabberd mailing list
ejabberd@jabber.ru
http://lists.jabber.ru/mailman/listinfo/ejabberd
Post recived from mailinglist
Guest
Posted: Sun Oct 01, 2006 7:19 pm Reply with quote
Guest
On Sun, 1 Oct 2006, Bill Clementson wrote:

> tcp4 0 0 *.5298 *.* LISTEN

That's a jabber port, and the * indicates that the listener is bound to
all IP addresses.

Tony.
--
f.a.n.finch <dot@dotat.at> http://dotat.at/
FORTIES CROMARTY FORTH: SOUTHERLY 6 TO GALE 8, DECREASING 5 OR 6 LATER. RAIN
OR SHOWERS. MODERATE OR GOOD.
_______________________________________________
ejabberd mailing list
ejabberd@jabber.ru
http://lists.jabber.ru/mailman/listinfo/ejabberd
Post recived from mailinglist
Guest
Posted: Sun Oct 01, 2006 7:57 pm Reply with quote
Guest
> > tcp4 0 0 *.5298 *.* LISTEN
>
> That's a jabber port, and the * indicates that the listener is bound to
> all IP addresses.

But, does it provide any clues as to why iChat won't connect to my
ejabberd server? I've tried setting the server to:

bc.local
127.0.0.1
localhost

but it still won't connect. Actually, the connection behaviour is a
bit different depending on the server name I use. For 127.0.0.1 and
localhost, I get an immediate message back in iChat that says "Could
not connect to Jabber. Could not connect to host localhost" (or
127.0.0.1). However, if I change the server name to bc.local (my
machine's name is "bc"), I get a message "Connecting..." but, after
about a minute or two, it comes back with the same error message.

I initially installed ejabberd with bc.local as the server name. I
have now uninstalled ejabberd and re-installed it with localhost as
the server name. However, I still get the same behaviour (e.g. -
immediate error message for 127.0.0.1 and localhost but a delayed
error message for bc.local).

With both the bc.local install and the localhost install, Psi was able
to connect to the server without any problems.

Any ideas?

Thanks,
Bill
_______________________________________________
ejabberd mailing list
ejabberd@jabber.ru
http://lists.jabber.ru/mailman/listinfo/ejabberd
Post recived from mailinglist
firenzeadelaire16
Posted: Fri Jun 15, 2012 11:53 pm Reply with quote
Joined: 15 Jun 2012 Posts: 3
At a guess, ejabberd may not be binding to your localhost address
(127.0.0.1), and may instead only be binding to the "real" network
addresses on your machine. You may want to double-check this, using
netstat or a similar tool. Perhaps try using the IP address of a
network adapter in iChat.
Vegas Robaina Don Alejandro
View user's profile Send private message

Display posts from previous:  

All times are GMT
Page 1 of 1
This forum is locked: you cannot post, reply to, or edit topics.

Jump to:  

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum