Get IP of XMPP Buddy

Nikolaus Rath Nikolaus at rath.org
Thu Apr 23 11:04:25 EDT 2009


Paul Aurich <paul at darkrain42.org> writes:
> And Nikolaus Rath spoke on 04/22/2009 02:03 PM, saying:
>> Is there some way to get the IP of an (online) XMPP buddy? Both are
>> using Pidgin.
>
> My favorite method is this:
>
> OUT: <message type='chat' to='my.friend at darkrain42.org/pidgin'><body>Hey,
> what's your IP address? Run `ifconfig` (`ipconfig /all` on Windows) to
> check.</body></message>

Unfortunately that doesn't work behind a NAT router. And there are many
users for which the above instructions (let alone finding the desired
number in the resulting output) pose a significant problem...

> In all seriousness though, IPs are (possibly) disclosed when doing
> file transfers or other peer-to-peer activities (i.e. Voice/Video when
> Pidgin supports it), but that's about it.

So there is really no way to programatically obtain the IP? Maybe as
part of the XMPP protocol?


Best,

   -Nikolaus

-- 
 »Time flies like an arrow, fruit flies like a Banana.«

  PGP fingerprint: 5B93 61F8 4EA2 E279 ABF6  02CF A9AD B7F8 AE4E 425C



More information about the Support mailing list