ejabberd - Comments for "mod_proxy65 doesn&amp;#039;t open port 7777" https://www.ejabberd.im/node/4053 en Works! https://www.ejabberd.im/node/4053#comment-55769 <p>Thank you! The proxy was really bound to the local address only and therefore it would not accept connections from the outside. But once I changed the config your way it started listening on 0.0.0.0:7777 and is accepting connections now.</p> Mon, 17 May 2010 11:31:32 +0000 Pontiac comment 55769 at https://www.ejabberd.im Pontiac wrote: But: if I https://www.ejabberd.im/node/4053#comment-55763 <div class="quote-msg"> <div class="quote-author"><em>Pontiac</em> wrote:</div> <p>But: if I verify with telnet whether the port 7777 is open it looks like it is not. What am I missing? </p></div> <p>I compiled and installed ejabberd 2.1.3 in Linux, configured the module like you (no custom options). When I start ejabberd, it shows those messages in the log files, which indicate that ejabberd started the module, the listener, etc:</p> <pre> ... =PROGRESS REPORT==== 17-May-2010::11:22:02 === supervisor: {local,ejabberd_sup} started: [{pid,&lt;0.299.0&gt;}, {name,mod_proxy65_stream_sup}, {mfa, {ejabberd_tmp_sup,start_link, [mod_proxy65_stream_sup,mod_proxy65_stream]}}, {restart_type,permanent}, {shutdown,infinity}, {child_type,supervisor}] =PROGRESS REPORT==== 17-May-2010::11:22:02 === supervisor: {local,ejabberd_listeners} started: [{pid,&lt;0.300.0&gt;}, {name,{7777,{127,0,0,1},tcp}}, {mfa, {ejabberd_listener,start, [{7777,{127,0,0,1},tcp}, mod_proxy65_stream, ["localhost"]]}}, {restart_type,transient}, {shutdown,brutal_kill}, {child_type,worker}] =PROGRESS REPORT==== 17-May-2010::11:22:02 === supervisor: {local,ejabberd_mod_proxy65_localhost} started: [{pid,&lt;0.302.0&gt;}, {name,mod_proxy65_sm}, {mfa,{mod_proxy65_sm,start_link,["localhost",[]]}}, {restart_type,transient}, {shutdown,5000}, {child_type,worker}] =PROGRESS REPORT==== 17-May-2010::11:22:02 === supervisor: {local,ejabberd_mod_proxy65_localhost} started: [{pid,&lt;0.305.0&gt;}, {name,ejabberd_mod_proxy65_sup}, {mfa, {ejabberd_tmp_sup,start_link, [ejabberd_mod_proxy65_sup_localhost, mod_proxy65_stream]}}, {restart_type,transient}, {shutdown,infinity}, {child_type,supervisor}] =PROGRESS REPORT==== 17-May-2010::11:22:02 === supervisor: {local,ejabberd_mod_proxy65_localhost} started: [{pid,&lt;0.306.0&gt;}, {name,mod_proxy65_service}, {mfa,{mod_proxy65_service,start_link,["localhost",[]]}}, {restart_type,transient}, {shutdown,5000}, {child_type,worker}] =PROGRESS REPORT==== 17-May-2010::11:22:02 === supervisor: {local,ejabberd_sup} started: [{pid,&lt;0.301.0&gt;}, {name,ejabberd_mod_proxy65_localhost}, {mfa,{mod_proxy65,start_link,["localhost",[]]}}, {restart_type,transient}, {shutdown,infinity}, {child_type,supervisor}] </pre><p> Then I looked what ports is ejabberd listening:</p> <pre> $ netstat -nlp | grep beam | sort (Not all processes could be identified, non-owned process info will not be shown, you would have to be root to see it all.) tcp 0 0 0.0.0.0:38320 0.0.0.0:* LISTEN 21666/beam.smp tcp 0 0 0.0.0.0:4560 0.0.0.0:* LISTEN 21666/beam.smp tcp 0 0 0.0.0.0:5222 0.0.0.0:* LISTEN 21666/beam.smp tcp 0 0 0.0.0.0:5223 0.0.0.0:* LISTEN 21666/beam.smp tcp 0 0 0.0.0.0:5269 0.0.0.0:* LISTEN 21666/beam.smp tcp 0 0 0.0.0.0:5280 0.0.0.0:* LISTEN 21666/beam.smp tcp 0 0 0.0.0.0:5282 0.0.0.0:* LISTEN 21666/beam.smp tcp 0 0 127.0.0.1:7777 0.0.0.0:* LISTEN 21666/beam.smp </pre><p>As you can see, the port 7777 is only listened in the local address 127.0.0.1, not in all.</p> <p>Then I try a connection, and telnet fortunately uses the local address, so the connection works:</p> <pre> $ telnet localhost 7777 Trying 127.0.0.1... Connected to localhost. Escape character is '^]'. asdasd Connection closed by foreign host. </pre><p> ejabberd logs in ejabberd.log:</p> <pre> =INFO REPORT==== 17-May-2010::11:22:05 === I(&lt;0.300.0&gt;:ejabberd_listener:232) : (#Port&lt;0.3908&gt;) Accepted connection {{127,0,0,1},59976} -&gt; {{127,0,0,1},7777} </pre><p> If you want the proxy to listen in all addresses, you can configure:</p> <pre> {mod_proxy65,[ {ip, {0,0,0,0}} ]}, </pre> Mon, 17 May 2010 09:34:18 +0000 mfoss comment 55763 at https://www.ejabberd.im