[standards-jig] Re: My IP Address

Richard Dobson richard at dobson-i.net
Tue Sep 2 10:14:46 UTC 2003


> > What about a simple way of asking the server for the client's own IP
address?
> > The AIM and ICQ protocols have this to assist with direct connections
between
> > clients.  It can be useful for clients stuck behind NAT, particularly on
a
> > network with a dynamic connection, so that they don't have to each be
> > configured with external IP address information.  A simple port forward
at
> > the router will do.
>
> Why do you want to ask the server. You can do this with a "iq" and ask
> the the other clients. In our open source demo client we have done this
> for Netmeeting integration with jabber:iq:oob.
>
> We could take something like this:
>
> Send:
> <iq
>      type='get'
>      from='user1 at jabber.org/work'
>      to='user2 at jabber.org/home'
>      id='1'>
>    <query xmlns="jabber:iq:ip"/>
> </iq>
>
> Recv:
> <iq
>      type='result'
>      from='user2 at jabber.org/home'
>      to='user1 at jabber.org/work'
>      id='1'>
>    <query xmlns="jabber:iq:ip">
>      <ip>1.1.1.1</url>
>      <desc>my IP Adress</desc>
>    </query>
> </iq>

How is that going to help someone find out their own external IP? Your
example would just get the other clients internal IP would it not?

Richard




More information about the Standards mailing list