Giter VIP home page Giter VIP logo

myip's Introduction

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

myip's People

Contributors

jamesits avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

myip's Issues

编译失败

hi.

yudeMacBook-Air:gopath brite$ go get -u -v github.com/Jamesits/myip/src/
github.com/Jamesits/myip (download)
github.com/gortc/stun (download)
get "gortc.io/stun/v2/internal/hmac": found meta tag get.metaImport{Prefix:"gortc.io/stun", VCS:"git", RepoRoot:"https://github.com/gortc/stun"} at //gortc.io/stun/v2/internal/hmac?go-get=1
get "gortc.io/stun/v2/internal/hmac": verifying non-authoritative meta tag
gortc.io/stun (download)
src/github.com/gortc/stun/checks.go:5:8: use of internal package gortc.io/stun/internal/hmac not allowed
yudeMacBook-Air:gopath brite$

怎么解决?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.