natest

command module
v0.0.0-...-8b52c22 Latest Latest
Warning

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

Go to latest
Published: Dec 4, 2018 License: MIT Imports: 21 Imported by: 0

README

natest

A tool for testing NAT traversal.

NOTE: this is still very early and definitely does not catch all scenarios. If it reports something different than you're expecting, please file an issue.

Installation

go get github.com/whyrusleeping/natest

Usage (client)

> natest
your routers upnp/NAT-PMP port mapping works!
{
  "OutboundHTTP": {
    "OddPortConnection": "",
    "Port443Connection": ""
  },
  "Nat": {
    "Error": null,
    "MappedAddr": {}
  },
  "HavePublicIP": false,
  "Response": {
    "SeenAddr": "/ip4/107.3.189.76/tcp/54906",
    "ConnectBackSuccess": true,
    "ConnectBackMsg": "",
    "ConnectBackAddr": "/ip4/107.3.189.76/tcp/40823",
    "TriedAddrs": [
      "/ip4/127.0.0.1/tcp/34045",
      "/ip4/107.3.189.76/tcp/40823",
      "/ip4/107.3.189.76/tcp/34045"
    ]
  },
  "Request": {
    "PeerID": "QmYd8HNFF94TQdH2AJLgSfjTt3iVXM8hrRQ2r4boCBsZX7",
    "SeenGateway": "",
    "PortMapped": "/ip4/107.3.189.76/tcp/40823",
    "ListenAddr": "/ip4/127.0.0.1/tcp/34045"
  },
  "TcpReuseportWorking": false
}

Usage (server)

To run a custom server, install the server program with:

go get github.com/whyrusleeping/natest/natest-server

Then run it on a server with a public IP address. (No nat issues please)

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