ejabberd - Comments for "connecting problem other than localhost" https://www.ejabberd.im/node/2924 en problem solved https://www.ejabberd.im/node/2924#comment-52083 <p>Hello,<br /> I found the problem. When other machines try to connect ejabberd server NAT use a real ip and old port 5223 (195.xxx.xxx.xxx:5223) for client connection.<br /> Network doesn't respond ejabberd traffic like other request. In the same stuaiton web request to port 80 doesn't fails. Request to apache works fine but ejabberd requests fail.<br /> Net admin abolishes NAT and clients connect now to ejabberd.<br /> Thanks for your suggestions.</p> Tue, 01 Apr 2008 20:28:32 +0000 catav comment 52083 at https://www.ejabberd.im Maybe a firewall blocks port 5222 https://www.ejabberd.im/node/2924#comment-52081 <div class="quote-msg"> <div class="quote-author"><em>catav</em> wrote:</div> <p>My server named in LAN as kvc and full name is kvc.tyih.gov.tr<br /> Other machines find it without any problem with this name. ejabberd.cfg file contains following line;<br /> {hosts, ["kvc.tyih.gov.tr"]}<br /> But i can't connect to server.</p></div> <p>So, the other machines can reach the server, but Jabber client can't login in the ejabberd server.</p> <p>Maybe there is a firewall blocking the connection to port 5222 TCP. You can ensure that the other machines can access the port 5222 with telnet.</p> <p>In this example I verify that my machine can connect to a Jabber server, port 5222:</p> <pre>$ telnet jabberes.org 5222 Trying 83.149.104.137... Connected to jabberes.org. Escape character is '^]'. asdasd &lt;?xml version='1.0'?&gt;... Connection closed by foreign host.</pre><p> You can also take a look at the log files ejabberd.log and sasl.log. Check what appears in the files when you login with a Jabber client in the server machine; and in other machines.</p> Tue, 01 Apr 2008 11:15:02 +0000 mfoss comment 52081 at https://www.ejabberd.im There are several solutions https://www.ejabberd.im/node/2924#comment-52052 <p>Hello,<br /> My server named in LAN as kvc and full name is kvc.tyih.gov.tr<br /> Other machines find it without any problem with this name. ejabberd.cfg file contains following line;<br /> {hosts, ["kvc.tyih.gov.tr"]}<br /> But i can't connect to server.</p> <p>Thanks.</p> Tue, 25 Mar 2008 06:44:00 +0000 catav comment 52052 at https://www.ejabberd.im There are several https://www.ejabberd.im/node/2924#comment-52050 <p>There are several solutions.</p> <p>For example, if the machine that runs the server is accesible by other machines in your LAN with the name 'machineserver', for example, then you can call your Jabber server with that name. For that, edit ejabberd.cfg:</p> <pre>{hosts, ["machineserver"]}.</pre><p> In the other machines, tell in the Jabber client to connect to the Jabber server 'machineserver'.</p> Tue, 25 Mar 2008 00:17:47 +0000 mfoss comment 52050 at https://www.ejabberd.im