STUN implementation in Go
ipAddress, err := stun.RequestPublicIPAddress()
if err != nil {
log.Fatal(err.Error())
}
ipAddress.String() // => "8.8.8.8"
Based on RFC5389.
ipAddress, err := stun.RequestPublicIPAddress()
if err != nil {
log.Fatal(err.Error())
}
ipAddress.String() // => "8.8.8.8"
Based on RFC5389.