Wednesday, June 11, 2014

Terminal command to get your own IP address

On Terminal:
ifconfig |grep inet | ipconfig getifaddr en1

and on Console:
`ifconfig |grep inet | ipconfig getifaddr en1 `.strip
host = `ifconfig |grep inet | ipconfig getifaddr en1 `.strip