Last active
September 11, 2017 21:34
-
-
Save ntrogers/0879a7b158802589ddee4bbca5ec04dc to your computer and use it in GitHub Desktop.
[sh - Get Client IP] Get Client IP Address #macOS #nix #Bash
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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