[JDEV] Jabber 1.4: using IP instead of FQN

Max Horn max at quendi.de
Sat Mar 3 03:58:49 CST 2001


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




More information about the JDev mailing list