How to Connect WhatsApp Using a $3 VPS Gateway

Keep your WhatsApp gateway online 24/7 without leaving a PC running.

The WaSMS TeamSeptember 21, 20263 min read
Share

A laptop that has to stay on all day works until someone closes the lid, the WiFi drops, or the power goes out. A whatsapp vps gateway solves that by running the same gateway software on a tiny cloud server that never sleeps, for about the price of a coffee each month.

Why a WhatsApp VPS Gateway Beats a Home PC

  • 24/7 uptime that isn't tied to office hours, home WiFi, or anyone remembering to leave a machine on
  • No accidental sleep or shutdown from a laptop lid closing or an update forcing a restart
  • A static, always-on connection, which keeps the WhatsApp session more stable than a home network that drops occasionally
  • Frees up the computer people actually work on day to day

Compare the real cost: a dedicated mini PC runs about $150 upfront plus electricity and someone remembering it exists. A $3-a-month VPS costs less over a year and someone else handles the hardware, the power, and the network.

If you're not ready for a dedicated server, a local gateway on your own PC is the faster starting point — you can move to a VPS later without losing anything in WaSMS.

Choosing a $3 VPS Provider

You don't need anything fancy. Look for:

  • At least 1GB of RAM (512MB can run a single number, but 1GB leaves room to breathe)
  • Ubuntu 22.04 LTS or Debian as the operating system
  • A datacenter region reasonably close to where your customers are, for lower message latency
  • SSH access and an easy way to reboot the server from a web panel if something goes wrong

Verify current pricing directly with the provider before you commit — budget VPS pricing shifts often, and it's worth a five-minute comparison across two or three hosts.

Installing the Gateway

SSH into your new VPS and install the WaSMS gateway:

ssh root@your-vps-ip
curl -fsSL https://get.wasms.net/gateway | bash
wasms-gateway login --key <YOUR_WASMS_API_KEY>

The installer sets the gateway up as a background service so it survives reboots without you having to start it manually each time.

![Terminal showing the gateway installation command running](IMAGE_NEEDED:terminal screenshot showing the WaSMS gateway installation command running on a VPS)

Connecting WaSMS

Once installed, the login command prints a QR code straight into your terminal, or you can open the link it gives you to see the same QR on the WaSMS Channels page. Scan it from WhatsApp on your phone under Settings, then Linked Devices, then Link a Device, exactly as you would for a local gateway.

![WaSMS Channels page showing the VPS gateway connected](IMAGE_NEEDED:screenshot of the WaSMS Channels page showing the VPS gateway marked as Connected)

Session Persistence

Because the gateway runs as a managed service, a VPS reboot restarts it automatically and it reconnects using the saved session, no rescanning required in most cases. What does force a rescan is deleting the session folder or reinstalling from scratch, so avoid that unless you're intentionally starting over. For a deeper look at how sessions behave over time, see WhatsApp session management and what to do if you hit a session expired message.

Most VPS providers also offer a one-click snapshot feature — taking one occasionally means you can restore the whole server, session included, if something goes badly wrong.

Monitoring Uptime

WaSMS shows your channel's status as connected or disconnected right on the Channels page, which is enough for most businesses to check daily. If you want to be notified the moment it drops rather than discovering it later, an external uptime monitor pinging your server is a simple addition. Either way, if the status turns red, gateway offline fix is the first place to look.

![WaSMS channel health indicator over time](IMAGE_NEEDED:screenshot of the WaSMS channel health indicator showing connected status history)

What to read next

Frequently asked questions

Look for a reputable budget host offering at least 1GB of RAM for around $3 to $5 a month rather than chasing the absolute lowest price. Compare current plans directly with the provider before committing, since promotional pricing changes often, and avoid oversold free-tier plans that come with poor uptime.

Related articles