local ip address?
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.)