Documentation ¶ Overview ¶ stunip gets public IP from public STUN servers Index ¶ func PublicIP() (net.IP, error) Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ func PublicIP ¶ func PublicIP() (net.IP, error) PublicIP tries optimise STUN server lists. If server fails - it tries another one from list When server responds successfully - next time it will be tried first. Very simple and straightforward implementation. Types ¶ This section is empty. Source Files ¶ View all Source files servers.go stun.go Click to show internal directories. Click to hide internal directories.