Skip to content

Evsio0n/sock2tcp

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

sock2tcp

sock2tcp is a simple tool to forward a local socket to serve as a TCP server. It is useful when you have a local socket and you want to expose it to specific IP and port.

Installation

go install github.com/evsio0n/sock2tcp

Usage

  1. use .env file to configure the server
Parameter Description
UNIX_SOCKET_PATH The path of the local socket
TCP_BIND_ADDRESS The port to expose the socket
UNIX_SOCKET_PATH=/path/to/socket
TCP_BIND_ADDRESS=0.0.0.0:8080
  1. use environment variables to configure the server
export UNIX_SOCKET_PATH=/path/to/socket
export TCP_BIND_ADDRESS=0.0.0.0:8080
./sock2tcp 

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages