Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/mon4ik/forward-port


https://github.com/mon4ik/forward-port

Last synced: 7 days ago
JSON representation

Awesome Lists containing this project

README

        

# Forward Port
Your local port forwarding

## Installation
- Install from NPM
```shell
npm i -g @idkncc/forward-port
forward-port server
```
- Build
```shell
#1. Install deps
yarn

#2. Build
yarn dev

#3. Run
yarn start server
# or
# node ./bin server
```

## Usage
> **Note:** Pre-Shared key needs to be random and identical on server and client
```shell
# Generate unique pre-shared key
forward-port gen-key [length]

# Create ForwardPort (FP) Server
forward-port server [-p ]

# Create ForwardPort Client
forward-port client [-p ] [--debug]
```

## Example (Minecraft Server)
- On your server (with white IP, **f.e. VDS**)
```shell
npx @idkncc/forward-port server SUPER_SECRET_KEY
# f.e. Server runs on IP 5.5.5.5
```
- On your PC
```shell
# minecraft port vds
# v v
npx @idkncc/forward-port client 25565 5.5.5.5 SUPER_SECRET_KEY
```
- Your friend: Uses **5.5.5.5:1337** to connect