iputils

package
v2.0.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 19, 2025 License: MIT Imports: 5 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Ipv4APIUrls = []string{
	"https://whatismyip.akamai.com",
	"http://v4.ipv6-test.com/api/myip.php",
	"https://checkip.amazonaws.com",
	"https://api.ipify.org",
	"https://canhazip.com",
	"https://myip.dnsomatic.com",
	"http://members.3322.org/dyndns/getip",
	"https://ip.3322.net",
	"https://ipv4.myexternalip.com/raw",
	"https://ipv4.ident.me",
	"https://ipv4.icanhazip.com",

	"https://checkip4.spdyn.de",
	"https://ipinfo.io/ip",
	"https://ddns.oray.com/checkip",
	"https://4.ipw.cn",
	"https://v4.yinghualuo.cn/bejson",
	"https://myip.ipip.net",
	"http://ifconfig.me/ip",
}
View Source
var Ipv6APIUrls = []string{
	"http://v6.ipv6-test.com/api/myip.php",
	"https://ipv6.icanhazip.com",
	"https://ipv6.yunohost.org",
	"https://api64.ipify.org",
	"https://v6.ident.me",
	"https://6.ipw.cn",
	"https://ipv6.myexternalip.com/raw",
	"https://checkip6.spdyn.de",
	"https://ifconfig.me/ip",
}

Functions

func GetMyPublicIpv4

func GetMyPublicIpv4() string

func GetMyPublicIpv6

func GetMyPublicIpv6() string

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL