[jdev] jabber server name by ip

Justin Karneges justin-keyword-jabber.093179 at affinix.com
Sat Jul 22 13:48:15 CDT 2006


On Saturday 22 July 2006 06:09, Matthias Wimmer wrote:
> Oleg Motienko schrieb:
> > Does anybody know a method of discovering jabber server name by ip
> > address if port 5269/tcp is opened and jabber server listening there?
>
> Jabber servers provide virtual hosting and have typically no "default
> domain". Therefore, I think it will be at least hard to find out the
> domain name this way.

From RFC 3920, 4.7.1:

"... if the initiating entity provides an unknown host in the 'to' attribute 
(or provides no 'to' attribute at all), the server SHOULD provide the 
server's authoritative hostname in the 'from' attribute of the stream header 
sent before termination."

This could happen if there is an error while the stream is being set up, like 
if you telnet to port 5269 and type jibberish.

-Justin



More information about the JDev mailing list