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?
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.
I google'd the problem and found someone else who experienced the same thing back in February.
The user's name was bvondane and the conversation is near the bottom of the page. However, it doesn't give a solution. Was a fix ever found for this situation?
Thanks.
First off I have a question
Your hosts option should point to your hostname(s), while you need to do the IP binding in the listen section. Examples:
Add for each service an IP you want to serve it on:
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.
Can you ping on server1, the conference service from server2?:
And can you ping on server2,the conference service from server1?:
In case one of the two or both do not work, you need to make sure both are resolvable. You can do this by:
--
sander
I'm missing something...
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:
{hosts, ["example.org"]}.
{listen,
[
{5222, ejabberd_c2s, [{access, c2s}, {ip, {100, 100, 100, 100}},
{shaper, c2s_shaper}]},
{5269, ejabberd_s2s_in, [{shaper, s2s_shaper}]},
{5280, ejabberd_http, [http_poll, web_admin]}
]}.
When I try to registertestName@example.org 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?
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.
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.
Thanks again for your help.
Greg
At a DOS prompt, I try to
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.
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 ;-)
Maybethis information can help you?
--
sander
It works
Thanks sander, that did it. Everything is working great now.
Greg