Skip to content

Instantly share code, notes, and snippets.

@mschmitt
Created June 14, 2017 12:50
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mschmitt/94da5d8a978d2547700a9b6285f61a1e to your computer and use it in GitHub Desktop.
Save mschmitt/94da5d8a978d2547700a9b6285f61a1e to your computer and use it in GitHub Desktop.
#!/bin/sh
IP4=$(curl -s http://www.ipv4.dyn.f00.net/ip.php) &&
ORG4=$(curl -s http://ipinfo.io/ | jshon -e org) &&
echo IPv4: $IP4 / $ORG4
IP6=$(curl -s http://www.ipv6.dyn.f00.net/ip.php) &&
ORG6=$(curl -s http://ipinfo.io/ | jshon -e org) &&
echo IPv6: $IP6 / $ORG6
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment