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.
- 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
- Clone the repository:
git clone https://github.com/Bethel-nz/Ech.0.git cd Ech.0
- Build the executable:
go build -o echo main.go
- Run the forwarder:
./echo -source localhost:3000 -target :8080
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
Run in debug mode:
go run main.go -source localhost:3000 -target :8080
- Needed a way to access services running on my pc over the LAN network
This project is open-source under the MIT License.