linux networkForwarding unix socket to a tcp connection.sock2tcp, a tool that can forwarding unix socket to a tcp connection.sock2tcpsock2tcp 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.Installation1 go install github.com/evsio0n/sock2tcp Usageuse .env file to configure the serverParameterDescriptionUNIX_SOCKET_PATHThe path of the local socketTCP_BIND_ADDRESSThe port to expose the socket1 2 UNIX_SOCKET_PATH=/path/to/socket TCP_BIND_ADDRESS=0.0.0.0:8080 use environment variables to configure the server1 2 3 export UNIX_SOCKET_PATH=/path/to/socket export TCP_BIND_ADDRESS=0.0.0.0:8080 ./sock2tcp use docker container.1 docker run -v /tmp/mysql.sock:/tmp/mysql.sock -e "UNIX_SOCKET_PATH=/tmp/mysql.sock" -e "TCP_BIND_ADDRESS=0.0.0.0:3306" -p 3306 ghcr.io/evsio0n/sock2tcp:latest