Think. Code. Enjoy.

[email protected]


  • Blog

Categories

  • android
  • django
  • linux
  • nodejs
  • osx
  • python
  • react-native
  • type-script
  • webdev

How to find my external ip in shell?

Problem 😱

You want to get your external ip?


Solution 🤓

alias:

alias myip='curl ipinfo.io'

usage:

| => myip
{
  "ip": "0.0.0.0",
  "hostname": "dd.dynamic.chello.pl",
  "city": "Sopot",
  "region": "Sopot",
  "country": "PL",
  "loc": "dd,dd",
  "org": "AS6830 Liberty Global Operations B.V."
}
By @PythonicNinja in [ linux ] pon 30 października 2017
Tags : #linux, #ip, #shell, #bash,

Wanna contact me? email me :)