[ejabberd] External component connectivity issues

Ryan Delgrosso ryandelgrosso at gmail.com
Fri Nov 7 02:14:33 MSK 2014

Hi all,
Hopefully my problem is simple and someone here can point me in the 
right direction. Ive been having difficulties getting ejabberd to listen 
for external component connections (maybe im going about this wrong). 
When i try to open that socket i just get an immediate tcp RST.

I have configured an external component connection

    {5325, ejabberd_service, [
                          {access, all},
                          {host, "service.domain.net"},
                          [{password, "secret"}]

If i run a netstat -tnl i can clearly see ejabberd has opened a socket 
for incoming connections

tcp        0      0* LISTEN

Opening a connection to that port with:

telnet <host> 5325 i am greeted with immediate connection closure.

In the logs on the server however i get:

=INFO REPORT==== 2014-11-06 14:09:55 ===
I(<0.473.0>:ejabberd_listener:281) : (#Port<0.3764>) Accepted connection 
{{10,10,40,68},35983} -> {{10,10,40,80},5325}

=INFO REPORT==== 2014-11-06 14:09:55 ===
I(<0.476.0>:ejabberd_service:124) : 
({socket_state,gen_tcp,#Port<0.3764>,<0.475.0>}) External service connected

By comparison if i perform the same test to the c2s or s2s port the 
connection opens and i can send an opening stanza

Any ideas where ive gone wrong here? The ejabberd version is 
ejabberd-2.1.13 running on CentOS.

Thanks in advance
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.jabber.ru/pipermail/ejabberd/attachments/20141106/97b2be1c/attachment.html>

More information about the ejabberd mailing list