Hi,
On 25 April 2013 16:48, chrizz <
haake.c...@gmail.com> wrote:
> Hi folks,
> hope this question did not came up very often.
>
> Here is my problem:
> On a virtual server I'm running an instance of prosody. A port scan onto
> this server shows open ports 5222 (Client) & 5269 (Server).
Sound like everything is up and running then.
> I have the mod_register module enabled but when I try to register a new
> account I get:
>
> Apr 25 17:31:03 c2s1663dad0 info Client connected
> Apr 25 17:31:03 c2s1663dad0 info Disconnecting client, <stream:error>
> is: <stream:error><host-unknown
> xmlns='urn:ietf:params:xml:ns:xmpp-streams'/><text
> xmlns='urn:ietf:params:xml:ns:xmpp-streams'>This server does not serve
> 12.34.56.78</text></stream:error>
> Apr 25 17:31:03 c2s1663dad0 info Client disconnected: This server
> does not serve 12.34.56.78
> Apr 25 17:31:03 c2s1663dad0 info Destroying session for (unknown)
> ((unknown)@
12.34.56.78)
>
This error means the virtual host you are trying to connect to (or
register on) isn't in the Prosody config file.
> Doesn't this work with IP addresses at all? What do I have to use for as
> VirtualHost in configuration file in case I only have an IP address
> available. Optionally I have a generic domain like
>
>
lvps12-34-56-78.dedicated.myhoster.com
>
> Can I somehow make use of this?
Prosody will let you use anything. An IP address will work, but you
may have interoperability problems (it's not recommended in XMPP). The
domain should work fine. However depending on the kind of server you
are planning on running, you might want something more stable (e.g. a
domain owned/controlled by yourself).
The host is part of your JID, your identifier (username@host). XMPP
makes strong use of the JID for identification, and username@host1 is
very different to username@host2. This makes moving accounts between
hosts an awkward operation, especially if they have contacts on other
servers.
However none of this is strictly necessary. If you're just using the
server for testing, go ahead and use the domain or IP address. As long
as it's specified in the Prosody config file and the client accepts
it, you can use it.
Hope this helps,
Matthew