[Q] Linux and localAddress

subbukk subbukk at gmail.com
Mon Oct 29 19:24:46 UTC 2007


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



More information about the Squeak-dev mailing list