https://github.com/kejunmao/ipgetter
This package is designed to fetch your external IP address from the internet.
https://github.com/kejunmao/ipgetter
ip ipgetter myip
Last synced: 7 months ago
JSON representation
This package is designed to fetch your external IP address from the internet.
- Host: GitHub
- URL: https://github.com/kejunmao/ipgetter
- Owner: KeJunMao
- License: mit
- Created: 2020-03-26T08:07:58.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2020-03-26T08:10:43.000Z (over 5 years ago)
- Last Synced: 2025-01-12T15:14:33.249Z (9 months ago)
- Topics: ip, ipgetter, myip
- Language: Go
- Size: 1.95 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Ipgetter
This package is designed to fetch your external IP address from the internet.
## Usage
```go
package mainimport (
"fmt"
"github.com/kejunmao/ipgetter"
)func main() {
fmt.Println(ipgetter.Myip())
}
```## Command Usage
```shell script
$ go install github.com/kejunmao/ipgetter/...
$ ipgetter
8.8.8.8
```