Re: Getting the IP addresses for my interfaces
Re: Getting the IP addresses for my interfaces
- Subject: Re: Getting the IP addresses for my interfaces
- From: Vincent Lubet <email@hidden>
- Date: Sun, 11 Mar 2007 12:00:40 -0700
On Mar 11, 2007, at 9:20 AM, Mark Gilbert wrote:
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 ?
Use getifaddrs(3)
Vincent
_______________________________________________
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