Skip to content

Bethel-nz/Ech.0

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 

Repository files navigation

port-forwarder

A simple TCP port forwarder built in Go. It redirects traffic from a source port to a target port, making local services accessible over a network.

Features

  • Port forwarding between any two TCP ports
  • Automatic target port selection if not provided
  • Displays available network interfaces for easier LAN access
  • Lightweight and fast using Go’s concurrency

Installation

  1. Clone the repository:
    git clone https://github.com/Bethel-nz/Ech.0.git
    cd Ech.0
  2. Build the executable:
    go build -o echo main.go
  3. Run the forwarder:
    ./echo -source localhost:3000 -target :8080

Usage

Basic port forwarding:

./port-forwarder -source localhost:3000 -target :8080

Automatically find an available port:

./port-forwarder -source localhost:3000

Access over LAN by using your local IP:

http://192.168.x.x:8080

Development

Run in debug mode:

go run main.go -source localhost:3000 -target :8080

Why

  • Needed a way to access services running on my pc over the LAN network

License

This project is open-source under the MIT License.

About

a simple port forwarding cli tool

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages