On 7/22/06, Justin Karneges <[EMAIL PROTECTED]> wrote:
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
I made some tests with port 5269 of several servers and no "to" attribute. One server implementation puts there empty "from", other puts a value of "to" from incoming stream (even if hostname in "to" is incorrect), and other gives stream error. On 5222 port some servers give proper "from" in reply to bad request. -- Regards, Oleg