Error listening on router port: 5222



I tried to install cells on another machine. Since ejabberd uses port 5222 on it, unable to install cells. When executing ./cells install, it reported an error.

2019-01-26T01:26:36.847+0900	FATAL	Error listening on router port: 5222 - listen tcp bind: address already in use

How can I fix this issue?


let me ask the devs if it’s possible to work around that.


In this time, I changed ejabberd port settings, however, I’d like cells to come to be able to change its bind addresses/ports if possible.


but this 5222 port was it the port that you used for your bind, external?


Yes, port 5222 is generally used by XMPP protocol


sorry for the late answer so this port is used by default by nats,
you could change it but only after you have installed cells, so you atleast need to change your XMPP port during Cells installation.

if you use ./cells --help you can see below,
all the flags and the ports that you can change.


Oh, thanks. I missed it.