Re: Correct way to determine machine LAN ip
Re: Correct way to determine machine LAN ip
- Subject: Re: Correct way to determine machine LAN ip
- From: Arthur VIGAN <email@hidden>
- Date: Sun, 30 Mar 2003 10:35:55 +0200
I'm not sure what you mean by "the machine LAN ip". I'll guess that
you mean IP address. Today's networked systems can have multiple IP
addresses assigned, so "the" IP address is a fuzzy concept at best.
OK, I see that it is far more complicated than what I thought...
What I am interested in is the ip address show in the Sharing system
preference panel.
It is from the "primary" interface that you will get an IP address that
is the closest thing you will find to "the" IP address. Select the
first one listed for the primary.
This is probably what I am looking for.
To see examples of the use of this framework in action, you can go to
the Darwin (or opendarwin) websites and check out the configd and
configd-plugin projects; and from the scutil and scselect commands. In
addition, there is a utility called 'ncutil' by Jeffrey Frey
(http://deaddog.duch.udel.edu/~frey/darwin) that does much of what the
network prefs panel does, but from the command line.
Thank for this, I will try to see.
In addition, there is some documentation in the
/Developer/Documentation tree (search for SysConfig and
SystemConfiguration).
I read this documentation, but there is no real example...
Thanks a lot.
-- Arthur
_______________________________________________
macnetworkprog mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/macnetworkprog
Do not post admin requests to the list. They will be ignored.