Skip to content

Instantly share code, notes, and snippets.

@blindFS
Last active December 26, 2015 07:09
Show Gist options
  • Save blindFS/7112970 to your computer and use it in GitHub Desktop.
Save blindFS/7112970 to your computer and use it in GitHub Desktop.
#!/bin/bash
echo "LAN: $(ifconfig | grep 'inet ' | grep -v '127.0.0.1' | head -n 1 | cut -d: -f2 | awk '{print $2}')"
echo "EXTERNAL: $(lynx --dump http://ipecho.net/plain)"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment