[JDEV] About changing the S2S communication port

Dave Smith dave at jabber.org
Thu Jul 26 09:10:30 CDT 2001

On Thu, Jul 26, 2001 at 03:27:02PM +0200, Riviere St?phane wrote:
> Hi,
> I noticed the following about S2S communication :
> - the jabber.xml file allows to change the LISTENING port of the server
> for S2S communication (by default 5269) as for C2S communication
> - when initializing the server in the dialback.c file the configured
> listening port is correctly read in the conf file
> - BUT in the dialback_out.c file, any outgoing connection is tried on the
> 5269 port of the distant server !

Yup. There has to be _some_ default port that all jabber servers listen on. This
is pretty standard..SMTP does the same thing. 

If you wanted to have your jabber server listen on another port, you can use
DNS SRV records (versus the standard A record) so that other servers get the
port you are listening on when they do the DNS query. If you don't have a SRV
record setup for your server, other servers will be default just use TCP port 5269.


More information about the JDev mailing list