https://github.com/mon4ik/forward-port
https://github.com/mon4ik/forward-port
Last synced: 8 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/mon4ik/forward-port
- Owner: Mon4ik
- Archived: true
- Created: 2023-07-10T13:21:55.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2024-12-06T17:26:18.000Z (12 months ago)
- Last Synced: 2025-03-22T06:40:42.990Z (8 months ago)
- Language: TypeScript
- Size: 56.6 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# deprecated
just use SSH lol
# 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