> I could process ipconfig or ifconfig outputs, but > this is OS-dependant and not very future-proof... This has been discussed quite a few times on this NG, search google groups. However IMHO there is no general system built-in way (AFAIK not even posix) for doing this, you'll end up parsing tool output anyway... -- Regards, Diez B. Roggisch