From: Yohanes Santoso Date: 2005-10-18T05:19:13+09:00 Subject: Re: Querying IP Address of a NIC Joe Van Dyk writes: > Hi, > > Other than parsing the output of `sudo /sbin/ifconfig`, anyone know of > a way to get the current IP address of a NIC? (say, eth0). > > Thanks! > Joe Parsing ifconfig is the only method that works on the largest number of OSes. Other than that, you'd have to use OS-dependent feature like what Detlef Reichl has shown. YS.