/stun-go

STUN implementation in Go

Primary LanguageGo

STUN implementation in Go

ipAddress, err := stun.RequestPublicIPAddress()
if err != nil {
  log.Fatal(err.Error())
}

ipAddress.String() // => "8.8.8.8"

Based on RFC5389.