How To Install Socat In Debian, Ubuntu, Alpine, Arch, Kali, CentOS, Fedora, Raspbian And MacOS?
Maintainer: Laszlo Boszormenyi (GCS)
Email: [email protected] .
Website: http://www.dest-unreach.org/socat/
Section: net
Install socat
-
Debian
apt-get install socatClick to copy -
Ubuntu
apt-get install socatClick to copy -
Alpine OS
apk add socatClick to copy -
Arch Linux
pacman -S socatClick to copy -
Kali Linux
apt-get install socatClick to copy -
CentOS
yum install socatClick to copy -
Fedora
dnf install socatClick to copy -
Raspbian
apt-get install socatClick to copy -
macOS
brew install socatClick to copy
Multipurpose relay (SOcket CAT).
How to use socat?
Below are few example commands for socat that you can use in the terminal.
Listen to a port, wait for an incoming connection and transfer data to STDIO:socat - TCP-LISTEN:8080,forkClick to copyCreate a connection to a host and port, transfer data in STDIO to connected host:socat - TCP4:www.domain.com:80Click to copyForward incoming data of a local port to another host and port:socat TCP-LISTEN:80,fork TCP4:www.domain.com:80Click to copy
Installation of latest socat command is available for Debian, Ubuntu, Alpine, Arch, Kali, CentOS, Fedora, Raspbian and macOS. You can copy the command for your OS from above and paste it into your terminal. Once you run the command it will download the 2026 latest package from the repository and install it in your computer/server.




