| Posted by Toby A Inkster on 06/13/68 12:00 
The Natural Philosopher wrote:
 > Getting the IP address is trickier: need to interrogate their NAT
 > router.
 
 Only if they use NAT. If the machine is directly routed, here's a quick
 way of determining the IP address from the command line:
 
 /sbin/ifconfig eth0 | grep -o "inet addr:[0-9\.]*" | sed 's/[^0-9\.]//g'
 
 Where "eth0" is the interface (i.e. network card or virtual network card)
 to check.
 
 --
 Toby A Inkster BSc (Hons) ARCS
 [Geek of HTML/SQL/Perl/PHP/Python/Apache/Linux]
 [OS: Linux 2.6.17.14-mm-desktop-9mdvsmp, up 17 days, 6 min.]
 
 Gnocchi all'Amatriciana al Forno
 http://tobyinkster.co.uk/blog/2008/01/15/gnocchi-allamatriciana/
  Navigation: [Reply to this message] |