• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: cleanest way to get outside IP address
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

References: 
 >cleanest way to get outside IP address (From: Nicolas Berloquin <email@hidden>)

  • Prev by Date: RE:cleanest way to get outside IP address
  • Next by Date: Re: cleanest way to get outside IP address
  • Previous by thread: cleanest way to get outside IP address
  • Next by thread: Re: cleanest way to get outside IP address
  • Index(es):
    • Date
    • Thread