https://github.com/ysmood/myip
Go pkg to reliably get the public ip address
https://github.com/ysmood/myip
address go golang ip local public
Last synced: 8 months ago
JSON representation
Go pkg to reliably get the public ip address
- Host: GitHub
- URL: https://github.com/ysmood/myip
- Owner: ysmood
- Created: 2018-11-26T09:31:39.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2024-04-19T04:12:29.000Z (over 1 year ago)
- Last Synced: 2024-06-21T16:48:32.224Z (over 1 year ago)
- Topics: address, go, golang, ip, local, public
- Language: Go
- Homepage:
- Size: 7.81 KB
- Stars: 3
- Watchers: 3
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
Awesome Lists containing this project
README
# Overview
No dependency, lightweight and fast way to get your ip.
The OpenDNS is not as stable as google's dns server, so here I use the 8.8.8.8.
Example: [link](examples_test.go)