• 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
local ip address?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

local ip address?


  • Subject: local ip address?
  • From: Tom Waters <email@hidden>
  • Date: Wed, 21 Nov 2001 09:22:18 -0800

(this was asked on this list in september, but unanswered)

Is there a way in Cocoa/Foundation to get the ip address of the machine my program is running on?

[[NSHost currentHost] address] always returns 127.0.0.1, or localhost...

how can i get the number that shows up in the output of ifconfig -a?

(don't tell me to use NSTask and run ifconfig... i know i can do that, i want to solve this inside my process.)


  • Prev by Date: Re: Mutability
  • Next by Date: Re: Mutability
  • Previous by thread: Re: Clicking dock icon... (Still no luck!)
  • Next by thread: RE: local ip address?
  • Index(es):
    • Date
    • Thread