Self-Hosted WhatsApp Setup Guide

Complete guide to set up your own WhatsApp server using whatsapp-web.js

What is Self-Hosted Mode?

Self-hosted mode allows you to run WhatsApp messaging directly from your own computer without using any third-party API services. Your messages are sent through your own WhatsApp account, and all data stays on your local machine.

Download Server Package

Get the complete self-hosted WhatsApp server package:

Download ZIP (Windows) Download TAR.GZ (Mac/Linux)

ZIP: ~89KB • TAR.GZ: ~65KB

Package includes: WhatsApp Web.js server, one-click installers (INSTALL-AND-RUN scripts), manual installation scripts, complete documentation, and troubleshooting guides


Installation Steps

1System Requirements

Before starting, ensure you have:

2Download & Extract

Download the server package and extract it to a folder on your computer.

Example location:
Windows: C:\WhatsApp-Server\
Mac/Linux: ~/WhatsApp-Server/
Important: Do not use spaces in the folder path. Use dashes or underscores instead.

3Install & Start Server (One-Click Method)

The easiest way to get started - one script does everything:

For Windows:
  1. Navigate to the extracted whatsapp-server folder
  2. Double-click INSTALL-AND-RUN.bat
  3. The script will automatically:
    • Check if Node.js is installed
    • Install all dependencies
    • Start the server
    • Display the QR code
For Mac/Linux:
  1. Open Terminal
  2. Navigate to the folder:
    cd ~/WhatsApp-Server/whatsapp-server/
  3. Run the one-click installer:
    ./INSTALL-AND-RUN.sh
  4. Or double-click the launcher:
    ./DOUBLE-CLICK-ME.sh
One-Click Magic: These scripts handle everything automatically - installation, setup, and starting the server. Just run once and you're done!
Alternative: Manual Installation

If you prefer step-by-step control:

  1. Run install.bat (Windows) or ./install.sh (Mac/Linux) first
  2. Then run run.bat (Windows) or ./run.sh (Mac/Linux) to start

4Server is Running!

If you used the one-click method (INSTALL-AND-RUN), the server is already running!

Server Started: The one-click script automatically starts the server after installation.

You should see output in the terminal window:

🚀 Server running: http://localhost:3000
📊 Status: http://localhost:3000/api/status
🔍 QR Page: http://localhost:3000/qr

⏳ Initializing client...
Running Server Later (After First Setup):

For subsequent runs, you can use either:

5Scan QR Code

After 10-30 seconds, a Chrome/browser window will automatically open showing the QR code at http://localhost:3000/qr

Multiple Ways to Access QR Code:
  • Auto-Open: Browser window opens automatically (recommended)
  • Terminal: QR code also displays in the terminal window
  • Manual: Open browser and visit http://localhost:3000/qr

QR Code appears in your browser automatically

To scan the QR code:

  1. Open WhatsApp on your mobile phone
  2. Go to Settings (or tap 3 dots in Android)
  3. Select Linked Devices
  4. Tap Link a Device
  5. Scan the QR code shown in your browser
Once scanned successfully, you'll see "✅ Connected!" in both the browser and terminal.

6Connect to Website

Now connect the website to your local server:

  1. Open your web browser
  2. Go to: WhatsApp Bulk Sender App
  3. In the "Connect to WhatsApp" section, click on "Self-Hosted" tab
  4. The default server URL is: http://localhost:3000 (already filled)
  5. Click the "Connect" button
  6. You should see "Connected successfully!" message
Server Endpoints:
  • http://localhost:3000/health - Health check
  • http://localhost:3000/api/status - Connection status
  • http://localhost:3000/qr - View QR code
Important: Keep the terminal window open while using the website. Closing it will stop the server.

7Start Sending Messages!

You're all set! Now you can:

All messages will be sent through your own WhatsApp account!


Troubleshooting

Common Issues & Solutions

Problem: "Node.js is not installed" error

Solution: Download and install Node.js from nodejs.org. Make sure to restart your terminal/command prompt after installation.

Problem: QR code not appearing

Solution:

Problem: "Cannot connect to server" on website

Solution:

Problem: Connection drops after some time

Solution:

Problem: Messages not sending

Solution:


Security & Privacy

Your Data is Safe

Important: Keep the .wwebjs_auth folder secure. It contains your WhatsApp session data. Don't share it with anyone!

Important Notes

Need Help?

Contact us for support:

Contact Support Back to App