[JDEV] Jabber 1.4: using IP instead of FQN
Keith Minkler
kminkler at jabber.com
Sun Mar 4 08:56:50 CST 2001
Correct, however you can do one of three things here to fix this...
You can obviously just use DNS names everywhwere... =}
failing that, you can name your <service id='12.34.56.78'/> instead of a FQDN, so that
the IP address of the server becomes the server name,
or, you should be able to put a <alias to="myhost.com"/> in the c2s configuration, to
make any hostname, including "12.34.56.78" be mapped to "myhost.com".. NOTE, I do not
know if this was ever thourougly tested, it would be interesting to see if it works
correctly.. *g*
Keith Minkler
On Sat, Mar 03, 2001 at 07:51:14AM -0700, David Waite wrote:
> 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
>
>
> _______________________________________________
> jdev mailing list
> jdev at jabber.org
> http://mailman.jabber.org/listinfo/jdev
Keith Minkler
-------
Software Developer
Jabber.COM, Inc.
-------
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 232 bytes
Desc: not available
URL: <https://www.jabber.org/jdev/attachments/20010304/53eee414/attachment-0002.pgp>
More information about the JDev
mailing list