Skip to content

Expose a local server behind NAT to internet #25

@snimavat

Description

@snimavat

Looks like the reverse proxy mode can be used to expose a local server behind NAT to be exposed to internet

Eg. a server running on wsclient can be exposed to internet using reverse proxy.

Examples about how to run a reverse tunnel client:

//without security
./wstun.js -r6666:2.2.2.2:33 ws://server:8080

//with security 
./wstun.js -r6666:2.2.2.2:33 wss://server:8080

In the above examples, the client asks the server to open a TCP server on port 6666 and all connections on this port are tunneled to the client that is directely connected to 2.2.2.2:33.

In above example, i am not clear, what is tunneled to the client that is directely connected to 2.2.2.2:33

What is 2.2.2.2 ? I want to expose a server on 127.0.0.1:LOCALPORT

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions