[ejabberd] ejabberd on port 80?

Heiner Wolf wolf at bluehands.de
Thu Aug 17 23:27:04 MSD 2006


Hi,

I tried to run in on port 80. But I don't see a LISTEN on this port. The
port is not used by the HTTP Server. My used ports before starting ejabberd:

tcp        0      0 127.0.0.1:3306          0.0.0.0:*
LISTEN     3770/mysqld
tcp        0      0 0.0.0.0:10000           0.0.0.0:*
LISTEN     1998/perl
tcp        0      0 0.0.0.0:4369            0.0.0.0:*
LISTEN     4169/epmd
tcp        0      0 0.0.0.0:25              0.0.0.0:*
LISTEN     22815/master

Starting ejabberd on port 5222:

tcp        0      0 127.0.0.1:3306          0.0.0.0:*
LISTEN     3770/mysqld
tcp        0      0 0.0.0.0:10000           0.0.0.0:*
LISTEN     1998/perl
tcp        0      0 0.0.0.0:4369            0.0.0.0:*
LISTEN     4169/epmd
tcp        0      0 0.0.0.0:25              0.0.0.0:*
LISTEN     22815/master
tcp        0      0 0.0.0.0:5280            0.0.0.0:*
LISTEN     9864/beam
tcp        0      0 0.0.0.0:5222            0.0.0.0:*
LISTEN     9864/beam
tcp        0      0 0.0.0.0:33008           0.0.0.0:*
LISTEN     9864/beam
tcp        0      0 0.0.0.0:5269            0.0.0.0:*
LISTEN     9864/beam
It added 4 ports, c2s, s2s, admin and 33008 for a some internal purpose(?)

I change in ejabberd.cfg:
  {listen, [{5222, ejabberd_c2s,.....
to:
   {listen, [{80, ejabberd_c2s,.....

Restart and netstat shows:

tcp        0      0 127.0.0.1:3306          0.0.0.0:*
LISTEN     3770/mysqld
tcp        0      0 0.0.0.0:10000           0.0.0.0:*
LISTEN     1998/perl
tcp        0      0 0.0.0.0:4369            0.0.0.0:*
LISTEN     4169/epmd
tcp        0      0 0.0.0.0:25              0.0.0.0:*
LISTEN     22815/master
tcp        0      0 0.0.0.0:5280            0.0.0.0:*
LISTEN     9990/beam
tcp        0      0 0.0.0.0:33027           0.0.0.0:*
LISTEN     9990/beam
tcp        0      0 0.0.0.0:5269            0.0.0.0:*
LISTEN     9990/beam
And I miss the port 80. There is no c2s port. No surprise:
   telnet localhost 80
  Trying 127.0.0.1...
  telnet: Unable to connect to remote host: Connection refused

Any ideas?

hw
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jabber.ru/pipermail/ejabberd/attachments/20060817/46fce443/attachment.htm


More information about the ejabberd mailing list