Skip to content

A little experiment to write a Go application that can relay incoming TCP connections to a dynamically requested endpoint

License

Notifications You must be signed in to change notification settings

itzg/go-tcp-relay

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

A little experiment to write a Go application that can relay incoming TCP connections to a dynamically requested endpoint.

Example

In terminal 1:

nc -k -l 8091

In terminal 2:

go run main.go --in 8090

In terminal 3:

nc 8090

Enter the following command into terminal 3:

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.

About

A little experiment to write a Go application that can relay incoming TCP connections to a dynamically requested endpoint

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages