Re: Getting the IP addresses for my interfaces
site_archiver@lists.apple.com Delivered-To: darwin-dev@lists.apple.com On Mar 11, 2007, at 9:20 AM, Mark Gilbert wrote: Folks. Use getifaddrs(3) Vincent _______________________________________________ Do not post admin requests to the list. They will be ignored. Darwin-dev mailing list (Darwin-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/darwin-dev/site_archiver%40lists.appl... 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 ? This email sent to site_archiver@lists.apple.com
participants (1)
-
Vincent Lubet