[Vm-dev] Finding ip address for eth0?
Andreas Raab
andreas.raab at gmx.de
Wed Aug 26 18:50:12 UTC 2009
Quick Unix question: How do I find out what the IP address for eth0/eth1
is? I thought NetNameResolver>>localHostAddress was supposed to return
this but it returns consistently 127.0.0.1 which is fine from a purity
point of view but utterly useless from any practical perspective ;-)
Is there any way of finding out the IP address for eth0 that doesn't
involve OS process, sed, and grep?
Thanks,
- Andreas
More information about the Vm-dev
mailing list