header photo


Yale Astronomy

Network Tasks

Determining IP Address of Local Machine

>> Network Tasks

On your laptop at home, do:

estrella.sfsu.edu:home% ifconfig -a

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


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


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 Tah

Return to Network Tasks