https://github.com/itzg/go-tcp-relay
A little experiment to write a Go application that can relay incoming TCP connections to a dynamically requested endpoint
https://github.com/itzg/go-tcp-relay
Last synced: about 2 months ago
JSON representation
A little experiment to write a Go application that can relay incoming TCP connections to a dynamically requested endpoint
- Host: GitHub
- URL: https://github.com/itzg/go-tcp-relay
- Owner: itzg
- License: mit
- Created: 2018-05-07T21:40:27.000Z (about 8 years ago)
- Default Branch: master
- Last Pushed: 2018-05-07T21:42:39.000Z (about 8 years ago)
- Last Synced: 2026-01-20T13:44:28.886Z (6 months ago)
- Language: Go
- Size: 1.95 KB
- Stars: 3
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
Awesome Lists containing this project
README
A little experiment to write a Go application that can relay incoming TCP connections to a dynamically
requested endpoint.
## Example
In terminal 1:
```bash
nc -k -l 8091
```
In terminal 2:
```bash
go run main.go --in 8090
```
In terminal 3:
```bash
nc 8090
```
Enter the following command into terminal 3:
```text
CONNECT :8091
```
That command line and any other lines you type will get relayed and displayed in terminal 1. Press Control-D to
stop the connection.