On Monday 29 October 2007 5:00 pm, Edgar J. De Cleene wrote:
Seems I need eth0 answer and not lo answer.
Edgar
On Linux, you can get the first global ip address with the command (all in one line): ip -o addr show scope global | awk '{print substr($4,1,index($4,"/")-1); exit}'
Hope this helps .. Subbu