Skip to content
/ myip Public

Get your external IP address from command line - STUN, DNS, HTTPS API supported

License

Notifications You must be signed in to change notification settings

Jamesits/myip

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

myip

Get your external IP address from command line.

Build Status

Usage

Basic Usage

$ myip
2001:db8::2

$ myip -4
192.0.2.2

$ myip -6
2001:db8::2

STUN

  • This is the default method
  • stun.l.google.com:19302 is the default server
  • Connection over UDP only
myip --method STUN --server stun.l.google.com:19302

ip.sb HTTPS API

myip --method ip.sb

OpenDNS DNS Query

myip --method OpenDNS

OpenDNS HTTPS API

  • -4/-6 doesn't work
myip --method OpenDNS-API

Building

Use go 1.11 or higher. Run build.sh to build and collect your artifact in build directory.

Donation

If this project is helpful to you, please consider buying me a coffee.

Buy Me A Coffee or PayPal

About

Get your external IP address from command line - STUN, DNS, HTTPS API supported

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published