Determing IP Address of local machine

On your laptop at home, do:

estrella.sfsu.edu:home% ifconfig -a


Get a bunch of entries. Local machine is the one with

BROADCAST

somewhere in it. The number XXX.XXX.XXX.XX next to

inet

is the IP address of local machine. Alternatively, put the following alias in .cshrc or .local

alias myinet 'ifconfig -a | grep -w inet | grep -v " 127" | awk "{print \$2}"'

and call it from the command line.


KL