Connect WhatsApp via VPS or cloud server
Run the WaSMS gateway 24/7 on a small Linux VPS — no laptop required.
Last updated 2026-05-31
If keeping your computer open all day is impractical, install the gateway on a Linux VPS. It runs 24/7, auto-starts on reboot, and costs about $5-10/month.
1. Get a small Ubuntu VPS
You need a Linux VPS (Ubuntu/Debian/AlmaLinux/Rocky/CentOS, x86_64) with at least 1 GB RAM. Recommended:
- Hetzner — ~4 EUR/month, very WhatsApp-friendly
- Contabo — ~5 EUR/month
- Vultr — $6/month, global
- DigitalOcean — $6/month
Avoid: AWS, Google Cloud, Azure — Meta flags those IP ranges aggressively.
2. Open the dashboard
- Go to Dashboard → Channels.
- Click Connect WhatsApp.
- Switch to the On a VPS / Cloud tab.
3. SSH into your VPS and paste the one-liner
curl -sSL https://wasms.net/binaries/gateway/install.sh | sudo bashThe installer downloads the binary, sets up a systemd service for auto-start, and runs first-time setup.
4. Paste your credentials when prompted
The dashboard shows 3 things to copy:
- Provisioning code — identifies your workspace
- Secret key — authenticates the gateway
- ngrok authtoken — free at ngrok.com
Each has a Copy button in the dashboard.
5. Scan the QR
Once setup finishes, return to the dashboard, click Connect WhatsApp, scan the QR with your phone.
Manage the gateway
systemctl status wasms-gateway journalctl -u wasms-gateway -f systemctl restart wasms-gateway systemctl stop wasms-gatewayTroubleshooting
- curl: not found — install first:
apt update && apt install -y curl - Service starts but not Online — check logs:
journalctl -u wasms-gateway -n 100 - Number gets banned — rare on Hetzner/Contabo/Vultr; common on AWS/GCP.