Linux and Windows, step by step. Copy the commands, paste them, and your node answers on the internet.
Droxid uses one port for everything — chat, voice, video and file uploads all share it. There is no UDP, no port range, no separate voice port.
| Port | Protocol | Why |
|---|---|---|
| 8993/tcp | ws:// | The node's own port. Open this if clients connect directly (no TLS proxy). |
| 443/tcp | wss:// | Recommended. Your reverse proxy terminates TLS and forwards to 8993. Required for camera/microphone in the client. |
| 80/tcp | http:// | Only for the certificate renewal challenge (HTTP-01). Can be closed again after the first certificate. |
sudo apt update
sudo apt install -y nodejs npm
node -v # must print v18 or newerOn older releases, install Node from NodeSource instead of the distro package. On Alpine: apk add nodejs.
sudo mkdir -p /opt/droxid
cd /opt/droxid
# unpack the server package you downloaded
unzip Droxid-server-1.2.0.zip -d /opt/droxid
sudo useradd -r -s /usr/sbin/nologin droxid
sudo mkdir -p /var/lib/droxid
sudo chown -R droxid:droxid /opt/droxid /var/lib/droxidsudo tee /etc/systemd/system/droxid.service > /dev/null <<'EOF' [Unit] Description=Droxid node After=network-online.target Wants=network-online.target [Service] User=droxid ExecStart=/usr/bin/node /opt/droxid/server/node.js --config /opt/droxid/server/config.json Restart=always RestartSec=5 [Install] WantedBy=multi-user.target EOF sudo systemctl daemon-reload sudo systemctl enable --now droxid sudo systemctl status droxid --no-pager journalctl -u droxid -n 30 --no-pager
# ufw (Debian / Ubuntu / Raspberry Pi OS) sudo ufw allow 8993/tcp sudo ufw allow 443/tcp sudo ufw allow 80/tcp sudo ufw enable # firewalld (Fedora / RHEL) sudo firewall-cmd --permanent --add-port=8993/tcp sudo firewall-cmd --permanent --service=https --add-port=443/tcp 2>/dev/null sudo firewall-cmd --permanent --add-port=443/tcp sudo firewall-cmd --permanent --add-port=80/tcp sudo firewall-cmd --reload # nftables (Alpine) nft add rule inet filter input tcp dport { 8993, 443, 80 } accept
curl -s http://127.0.0.1:8993/api/health
# from another machine: curl http://YOUR_PUBLIC_IP:8993/api/healthA JSON reply locally but a timeout from outside means the firewall or the router is blocking the port — not Droxid.
Download the Windows installer from nodejs.org (LTS), run it, then open PowerShell and check:
node -v
cd C:\
mkdir C:\droxid
# extract Droxid-server-1.2.0.zip into C:\droxid
cd C:\droxid
node server\node.js --config server\config.jsonThe first run prints the node's identity key — save it. It's how you unregister the server from the public registry later.
# PowerShell, run as Administrator
New-NetFirewallRule -DisplayName "Droxid node" -Direction Inbound -Protocol TCP -LocalPort 8993 -Action Allow
New-NetFirewallRule -DisplayName "Droxid TLS" -Direction Inbound -Protocol TCP -LocalPort 443 -Action AllowGraphical route: Windows Security → Firewall & network protection → Allow an app through firewall → Allow another app… → pick node.exe and tick both Private and Public. The port rule above is the more reliable of the two.
# Task Scheduler → Create Task → "Run whether user is logged on or not"
schtasks /create /tn "Droxid" /tr "C:\Program Files\nodejs\node.exe C:\droxid\server\node.js --config C:\droxid\server\config.json" /sc onstart /ru SYSTEMThe node speaks plain ws://. A reverse proxy in front of it gives you wss:// on 443, a normal certificate, and a single port that survives firewalls and corporate networks. This is exactly how droxsid.duckdns.org is served.
server {
listen 80;
server_name yourname.duckdns.org;
location / { return 301 https://$host$request_uri; }
}
server {
listen 443 ssl;
http2 on;
server_name yourname.duckdns.org;
ssl_certificate /etc/letsencrypt/live/yourname.duckdns.org/fullchain.pem;
ssl_certificate_key /etc/letsencrypt/live/yourname.duckdns.org/privkey.pem;
# uploads: match the node's own limit
client_max_body_size 150m;
location / {
proxy_pass http://127.0.0.1:8993;
proxy_http_version 1.1;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
# the two headers that make WebSocket work
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "upgrade";
# voice stays open for hours: do not let nginx drop it
proxy_read_timeout 3600s;
proxy_send_timeout 3600s;
}
}yourname.duckdns.org {
reverse_proxy 127.0.0.1:8993
}sudo apt install -y certbot python3-certbot-nginx
sudo certbot --nginx -d yourname.duckdns.org
# renewal is a timer; verify it:
sudo certbot renew --dry-runA certificate needs a real domain name. DuckDNS free names work, but only with the HTTP-01 challenge — so port 80 must be reachable for the first issuance.
ss -tlnp | grep 8993 (Linux) or netstat -ano | findstr 8993 (Windows). If nothing is listening, the process isn't running or the config port is different.
curl http://127.0.0.1:8993/api/health. A JSON reply here means the node is healthy and the problem is in front of it.
Locally fine but unreachable from outside → the OS firewall. Add the rule, then re-test from a phone on mobile data (not your own Wi-Fi).
Firewall open but still unreachable → port forwarding, CGNAT, or an ISP that blocks inbound ports. CGNAT cannot be fixed by port forwarding; use a VPS or a tunnel instead.
Chat works, then voice disconnects after a minute → the proxy is timing out. Set proxy_read_timeout high and make sure Upgrade / Connection headers are set.
The client refuses media on plain ws:// to a remote address. Use wss:// on 443, or connect to a node on localhost.
The Microsoft Edge WebView2 runtime is missing. Re-run the installer — it installs the runtime — or install it from Microsoft and start Droxid again.
Something else holds 8993. Change port in the config; clients then connect to the new port.