ejabberd - Comments for "2 Questions: Server name and MUC issue" https://www.ejabberd.im/node/455 en It works https://www.ejabberd.im/node/455#comment-956 <p>Thanks sander, that did it. Everything is working great now.</p> <p>Greg</p> Wed, 26 Oct 2005 18:52:14 +0000 Boshwok comment 956 at https://www.ejabberd.im At a DOS prompt, I try to https://www.ejabberd.im/node/455#comment-946 <blockquote><p>When I try to register <noindex><a href="mailto:testName@example.org" rel="nofollow" >testName@example.org</a></noindex> using gaim, I get a "Couldn't connect to host" error. I have been restarting ejabberd with each change of the config file. Do I need to add anything to my network settings?</p></blockquote> <p>You should verify that "ping example.org" gives you the same IP as you specified in your configuration file (100.100.100.100 in your example). If this is not the case, that will be probably be the error.</p> <blockquote><p>At a DOS prompt, I try to ping conference.100.100.100.100 and it says "Ping request could not find host conference.100.100.100.100. Please check the name and try again." This was attempting to ping the server on the same machine.</p></blockquote> <p>So you need to make sure that is resolvable; "conference.100.100.100.100" should be a synonym for "100.100.100.100". Unfortunately, I don't know how you can do this as easy as on most Unix-like OSes under the userfriendly Windows ;-)</p> <p>Maybe <noindex><a href="http://practice.chatserve.com/hosts.html" rel="nofollow" >this information</a></noindex> can help you?</p> <p>--<br /> sander</p> Mon, 24 Oct 2005 22:15:32 +0000 sander comment 946 at https://www.ejabberd.im I'm missing something... https://www.ejabberd.im/node/455#comment-945 <p>I think I'm missing something obvious here in both solutions, since I'm not making any progress. First off, let's say my IP address is 100.100.100.100. Here is the corresponding code I have in my config file:</p> <p>{hosts, ["example.org"]}.</p> <p>{listen,<br /> [<br /> {5222, ejabberd_c2s, [{access, c2s}, {ip, {100, 100, 100, 100}},<br /> {shaper, c2s_shaper}]},</p> <p> {5269, ejabberd_s2s_in, [{shaper, s2s_shaper}]},</p> <p> {5280, ejabberd_http, [http_poll, web_admin]}<br /> ]}.</p> <p>When I try to register <noindex><a href="mailto:testName@example.org" rel="nofollow" >testName@example.org</a></noindex> using gaim, I get a "Couldn't connect to host" error. I have been restarting ejabberd with each change of the config file. Do I need to add anything to my network settings?</p> <p>Second, when you ask about being able to ping one server from the other, do you mean from the Erlang emulator or a regular command prompt. In Erlang, my ping attempts generate no output, just the next prompt. This is even when I'm pinging the localhost.</p> <p>At a DOS prompt, I try to ping conference.100.100.100.100 and it says "Ping request could not find host conference.100.100.100.100. Please check the name and try again." This was attempting to ping the server on the same machine.</p> <p>Thanks again for your help.</p> <p>Greg</p> Mon, 24 Oct 2005 19:20:26 +0000 Boshwok comment 945 at https://www.ejabberd.im First off I have a question https://www.ejabberd.im/node/455#comment-929 <blockquote><p>First off I have a question about the server name that's most likely very simple to answer. In my config file, I have the host listed as my computer's IP address. How do I name the server so I don't have to use the IP as the domain?</p></blockquote> <p>Your hosts option should point to your hostname(s), while you need to do the IP binding in the listen section. Examples:</p> <ul> <li>Hosts option:<br /> <pre>{hosts, ["example.org"]}.</pre></li> <li>Listen section:<br /> Add for each service an IP you want to serve it on: <pre>{ip, {192, 168, 1, 1}}</pre></li> </ul> <p>Note that this allows you to specify a more advanced setup. You can, for example, make the web interface be served only on the internal IP, while s2s is binded on the WAN IP.</p> <blockquote><p> Next, I'm having a problem with MUC instances. When I create a room, people can only join if they are on the same server. I was running 2 ejabberd servers on my LAN. Acct1@Server1 logged in and created the room. He then invited Acct2@Server2, but Acct2 never received the invite. If Acct2 registers and logs in on Server1, he receives everything fine.</p></blockquote> <p>Can you ping on server1, the conference service from server2?:</p> <pre>server1$ ping conference.server2</pre><p> And can you ping on server2,the conference service from server1?:</p> <pre>server2$ ping conference.server1</pre><p> In case one of the two or both do not work, you need to make sure both are resolvable. You can do this by:</p> <ul> <li>Adding conference.server2 in server1's /etc/resolv.conf and conference.server1 in server2's /etc/resolv.conf (Unix-like instructions; translate them to Windows if you are using that non-conformant system).</li> <li>Adding a * rule for each server to your internal DNS server setup (so that "whatever.serverX" resolves always the right server).</li> <li>Adding a Cname for both servers in your internal DNS server setup: conference.%.</li> </ul> <p>--<br /> sander</p> Fri, 21 Oct 2005 20:44:13 +0000 sander comment 929 at https://www.ejabberd.im