ejabberd opening s2s connection to proxy.eu.jabber.org
<p>I have a local setup of ejabberd on a Phoenix application. For testing it, I created an account and logged in using Pidgin. But I noticed something odd in the logs:</p>

<pre><code>iex(8)&gt; [info] (#Port&lt;0.25178&gt;) Accepted connection 127.0.0.1:34684 -&gt; 127.0.0.1:5222
[info] ({socket_state,gen_tcp,#Port&lt;0.25178&gt;,&lt;0.899.0&gt;}) Accepted authentication for ankush by ejabberd_auth_mnesia from 127.0.0.1
[info] ({socket_state,gen_tcp,#Port&lt;0.25178&gt;,&lt;0.899.0&gt;}) Opened session for ankush@localhost/178547105681237390401298
[info] New s2s connection started &lt;0.901.0&gt;
[info] Trying to open s2s connection: localhost -&gt; proxy.eu.jabber.org with TLS=false
[info] s2s connection: localhost -&gt; proxy.eu.jabber.org (remote server not found)
[info] Reconnect delay expired: Will now retry to connect to proxy.eu.jabber.org when needed.
</code></pre>

<p>Why is an <code>s2s</code> connection being opened? I think because I'm on localhost and trying to connect using a client, the connection type should be <code>c2s</code>? Finally, where does the <code>proxy.eu.jabber.org</code> bit come from? </p>

<p>What I'm trying to do is run a fully functional local server on which I can have two users logged in and chatting. What's going wrong?</p>