Skip to content

Instantly share code, notes, and snippets.

@antoniopresto
Created March 1, 2018 11:12
Show Gist options
  • Save antoniopresto/6ac3df4ad9413777d11681ed4d0bfccd to your computer and use it in GitHub Desktop.
Save antoniopresto/6ac3df4ad9413777d11681ed4d0bfccd to your computer and use it in GitHub Desktop.
local machine ip
ifconfig | sed -En 's/127.0.0.1//;s/.*inet (addr:)?(([0-9]*\.){3}[0-9]*).*/\2/p'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment