[JDEV] getting IP address of connection in a component
jabber at matthias-wimmer.de
Sun Feb 10 03:58:14 CST 2002
On Sat, Feb 09, 2002 at 08:25:54PM -0800, tom_waters at mac.com wrote:
> I would like to write a server component that lets a client query
> it's external IP address...
> (this is in support of using jabber:iq:oob to do c2c stuff)
But your client could also use the getsockname() function!? Or do you
want to get the external IP for a client behind a NAT router? - But
behind a NAT you also have not much use of the external IP because the
other client is then connecting to the NAT router instead of to your
Also your extended client will have the problem, that it can do this
stuff only if your server administrator installs the module. I'd suggest
a solution that don't need changes on the server: Use a relaying
server where you put your data and the other site can get the data. E.g.
for file transfers just a webserver. You can put the data with WebDAV
and get it with normal http.
My 2 ¤urocent.
phone: +49-700-77007770 web: http://matthias-wimmer.de/
More information about the JDev