Getting the IP addresses for my interfaces
Getting the IP addresses for my interfaces
- Subject: Getting the IP addresses for my interfaces
- From: Mark Gilbert <email@hidden>
- Date: Sun, 11 Mar 2007 16:20:50 +0000
Folks.
Sorry for what appears to be a really simple Question, but I can't
find a simple answer
I want to find out the IP address assigned to my en0 ethernet
interface, programatically.
The equivalent to calling "ipconfig getifaddr en0" from the command
line. I have toyed with interacting with the ipconfig tool, but I am
sure there must be a much easier route somewhere in the sockets API.
Any suggestions on the easiest route ?
Cheers
Mark
--
email@hidden
Tel: +44 208 340 5677
fax: +44 870 055 7790
http://www.gallery.co.uk
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Darwin-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden