0.1.2 • Published 5 years ago

nat-tunnel v0.1.2

Weekly downloads
2
License
MIT
Repository
github
Last release
5 years ago

nat-tunnel

Description

CLI tool for nat-tunnel-server. Allows to publish locally running service to the world under:

nat-tunnel.tk/{name}

Usage

    nat-tunnel <name> <local host> <local port>

For example:

 nat-tunnel my-service 127.0.0.1 3000

will publish a service running at 127.0.0.1:3000 under:

http://nat-tunnel.tk/my-service/

How it works

Connection is based on TCP sockets.

Nat-tunnel client requests a dedicated TCP socket on nat-tunnel server and binds it to the locally running service via a duplex stream

Nat-tunnel server creates a dedicated base path for client and streams all HTTP requests on that domain to the socket

When the local service responds, a HTTP response is sent back to the original requester

Connection stays active as long as nat-tunnel client is running

0.1.2

5 years ago

0.1.1

5 years ago

0.1.0

5 years ago