Re: how to connect to server with IP, not domain name?
From: Jakob Schroeter <js@xxxxxxxxxx>
Date: Fri, 16 Oct 2009 14:48:45 +0200 (CEST)
Quoting Daniel Pellejero <danipellex@xxxxxxxx>:

Thank you, Ivo and Benjamin, but still nothing.
Any of your approaches solved my problem.

Maybe my simple problem is not so simple:
I am not able to connect a jabber server by knowing: IP, PORT, USER, PASSWORD
I dont know its DOMAIN NAME, so i cannot build properly the JID.

How to connect to the IP and extract from the initial XMPP messages the domain name to send my complete JID?

That's not possible in XMPP. The client has to know the server's name when first talking to the server. Depending on the sever's configuration that name can be an IP, though. (In that case all JIDs are of the node@IP form).

cheers,
Jakob