[ejabberd] Ejabberd listening on port 1212

Badlop badlop at gmail.com
Tue Nov 6 13:20:15 MSK 2007


2007/10/23, jesus at isaatc.ull.es <jesus at isaatc.ull.es>:
> I have executed the command "netstat -tpa", those are the more
> relevant lines in command output:
>
> tcp        0      0 *:5280                  *:*
> LISTEN     3004/beam
> tcp        0      0 localhost.localdom:5281 *:*
> LISTEN     3004/beam
> tcp        0      0 *:xmpp-client           *:*
> LISTEN     3004/beam
> tcp        0      0 *:5223                  *:*
> LISTEN     3004/beam
> tcp        0      0 *:4369                  *:*
> LISTEN     2987/epmd
> tcp        0      0 *:xmpp-server           *:*
> LISTEN     3004/beam
> tcp        0      0 *:1212                  *:*
> LISTEN     3004/beam
>
> The port 1212 is opened by beam, as you can see.

There is another way to know which ports is the Erlang node listening to:

(ejabberd at localhost)28> inet:i().
Port Module   Recv  Sent  Owner     Local Address         Foreign Address State
8    inet_tcp 0     0     <0.21.0>  *:35542               *:*
   ACCEPTING
10   inet_tcp 4     23    <0.19.0>  localhost:37970
localhost:4369  CONNECTED
350  inet_tcp 0     0     <0.241.0> *:xmpp-client         *:*
   ACCEPTING
351  inet_tcp 0     0     <0.242.0> *:5223                *:*
   ACCEPTING
352  inet_tcp 0     0     <0.243.0> *:xmpp-server         *:*
   ACCEPTING
353  inet_tcp 0     0     <0.244.0> *:5280                *:*
   ACCEPTING
354  inet_tcp 0     0     <0.245.0> *:8888                *:*
   ACCEPTING
505  inet_tcp 15714 38229 <0.351.0> 127.0.1.1:xmpp-client
127.0.1.1:46692 CONNECTED

I didn't find this function in Erlang documentation.
I read about it in this blog post:
http://blog.tornkvist.org/?id=1194342452130767


More information about the ejabberd mailing list