[JDEV] Jabber 1.4: using IP instead of FQN

David Waite dwaite at jabber.com
Sat Mar 3 08:51:14 CST 2001


Generally, DNS names should be used.

Specifically,  Jabberd doesn't use DNS internally for identification, so if the name doesn't match what it is
expecting things will not work.

So when you do <stream:stream to='208.245.212.100' ...> , it doesn't  find the jabber session manager specified
by
<service id="jabber.org">

Also keep in mind that the 'jabber.org' and '208.245.212.100' cannot be the same thing within JSM - if one
person connected as test at 208.245.212.100, they will be on a different virtual server than test at jabber.org.

-David Waite

Max Horn wrote:

> Hi there,
>
> in my client Jabbernaut, I got a report by a user who couldn't use it
> to login to his private server. He has no DNS or anything, so he has
> to use the IP. Unfortunatly, this doesn't work for him. I know it
> worked fine for me in the past with the Jabber.org server (and with
> temas server, say "SSL testing" <g>), but I decided to try again, and
> see, I failed, too :(
>
> I am not fully sure this is my mistake, or that of the server, so let
> me first describe what I found out:
>
> 1) Jabbernaut opens a connection to the server and sends:
>
>    <?xml version="1.0"?><stream:stream to="208.245.212.100"
> xmlns="jabber:client" xmlns:stream="http://etherx.jabber.org/streams">
>
> 2) The jabber.org server replies:
>
>    <?xml version='1.0'?><stream:stream
> xmlns:stream='http://etherx.jabber.org/streams' id='3AA0BE0A'
> xmlns='jabber:client' from='208.245.212.100'>
>
> 3) So far so good, all seems fine. Now I send iq:auth as usual:
>
> <iq id="8137E3769A2B4789" type="set"><query
> xmlns="jabber:iq:auth"><username>XXX</username><password>YYY</password><resource>ZZZ</resource></query></iq>
>
> However, for some reasons the jabber server doesn't get it, and after
> some time closes the connection with a timeout error. When I change
> back to using "jabber.org", everything works fine.
>
> My suspicion is that I might have to set a "to" field for the <iq>,
> and set it to the server IP. However, this is not what I read on
> http://docs.jabber.org/proto/html/jabber:iq:auth.html, and also not
> what the JPG says - if you specify no "to" field, it should always go
> to the server.
>
> So, someone please clarify me whether this is a bug or a feature; and
> what I can do to prevent it from happening.
>
> Thanks,
>
> Max/Fingolfin
> --
> -----------------------------------------------
> Max Horn
> C/C++ Developer
>
> email: <mailto:max at quendi.de>
> phone: (+49) 6151-494890
>
> _______________________________________________
> jdev mailing list
> jdev at jabber.org
> http://mailman.jabber.org/listinfo/jdev





More information about the JDev mailing list