go-nats

command module
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Sep 15, 2019 License: MIT Imports: 5 Imported by: 0

README

go-nats

NAT type discovery tool using STUN written purely in Go, powered by pion.

Usage

$ go build
$ ./go-nats -h
Usage of ./go-nats:
  -s string
    	STUN server address. (defaults to "stun.ekiga.net:3478" (default "stun.ekiga.net:3478")
  -v	Verbose

Example:

$ ./go-nats -s stun.sipgate.net
{
  "isNatted": true,
  "mappingBehavior": 0,
  "filteringBehavior": 2,
  "portPreservation": true,
  "natType": "Port-restricted cone NAT",
  "externalIP": "23.3.5.241"
}

Public STUN servers

STUN servers to use must support RFC 5780 (NAT Behavior Discovery Using STUN). Here's a list of public STUN servers that worked with go-nats as of Sep. 13, 2019.

  • stun.ekiga.net
  • stun.callwithus.com
  • stun.counterpath.net
  • stun.sipgate.net
  • stun.sipgate.net:10000
  • stun.1-voip.com

TODO: there may be more from this list:

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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