Skip to content

Instantly share code, notes, and snippets.

Get your Private IP Address with the ifconfig Command
ifconfig | grep -Eo 'inet (addr:)?([0-9]*\.){3}[0-9]*' | grep -Eo '([0-9]*\.){3}[0-9]*' | grep -v '127.0.0.1'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment