Re: cleanest way to get outside IP address
Re: cleanest way to get outside IP address
- Subject: Re: cleanest way to get outside IP address
- From: "Geoff Beier" <email@hidden>
- Date: Thu, 8 Jan 2009 15:20:13 -0500
On Thu, Jan 8, 2009 at 2:52 PM, Nicolas Berloquin <email@hidden> wrote:
> I'm looking for the cleanest or prefered way to get the "outside" IP adress
> of a host on a network,
> from the said host. For example a mac behind a NAT router.
> I could setup something on a server to give it back out through an HTTP
> request, but I'd like
> to know if there's already a more general internet service set up for that.
If you can count on being behind something with UPNP turned on, you
could use that. I'd be pretty straightforward with libnatpmp:
http://miniupnp.free.fr/libnatpmp.html
There's even a cocoa-like objc wrapper if that's your thing:
http://code.google.com/p/tcmportmapper/
Otherwise, you're stuck with a network service. If it were me, I'd
want to host my own, but there are public pages like whatismyip.com
available.
HTH,
Geoff
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Macnetworkprog mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden