Issue: Port 3001 is blocked by firewall. The bot is running but not accessible from outside.
Status: Server is running perfectly ✅ - Just need to open access
Access via: http://72.60.56.80/cryptobot/
Advantages:
- ✅ Port 80 already open (no firewall changes needed)
- ✅ Cleaner URL
- ✅ More secure
- ✅ Professional setup
Steps:
# SSH into VPS
ssh deploy@72.60.56.80
# The config file is already created at ~/cryptobot-nginx.conf
# Install it with these commands:
sudo cp ~/cryptobot-nginx.conf /etc/nginx/sites-available/cryptobot
sudo ln -s /etc/nginx/sites-available/cryptobot /etc/nginx/sites-enabled/cryptobot
sudo nginx -t
sudo systemctl reload nginxThen access:
http://72.60.56.80/cryptobot/
Access via: http://72.60.56.80:3001/
Advantages:
- ✅ Simpler - just one command
- ✅ Direct access to bot
Steps:
# SSH into VPS
ssh deploy@72.60.56.80
# Open port 3001 in firewall
sudo ufw allow 3001/tcp
sudo ufw reload
# OR if using iptables:
sudo iptables -A INPUT -p tcp --dport 3001 -j ACCEPT
sudo iptables-save | sudo tee /etc/iptables/rules.v4Then access:
http://72.60.56.80:3001/
Your VPS has a firewall that blocks most ports by default. Only these ports are open:
- ✅ Port 22 (SSH) - Open
- ✅ Port 80 (HTTP) - Open
- ✅ Port 443 (HTTPS) - Open
- ❌ Port 3001 (CryptoBot) - BLOCKED
The bot IS running and working perfectly - it's just the firewall blocking external connections.
After applying either option, test access:
Option 1: http://72.60.56.80/cryptobot/
Option 2: http://72.60.56.80:3001/
You should see: 🤖 Crypto Trading Bot Dashboard
# Test Option 1 (nginx proxy)
curl http://72.60.56.80/cryptobot/
# Test Option 2 (direct port)
curl http://72.60.56.80:3001/✅ Created nginx config file: ~/cryptobot-nginx.conf
✅ Verified bot is running: PM2 status online
✅ Verified port is listening: 3001 active
✅ Tested internally: Works perfectly from VPS
Only missing: External firewall access
Option 1 (Nginx Proxy) is more secure because:
- Nginx handles SSL/TLS termination
- Can add rate limiting
- Can add authentication
- Professional production setup
Option 2 (Direct Port) is fine for:
- Development/testing
- Quick setup
- Personal use
ssh deploy@72.60.56.80
cat ~/cryptobot-nginx.confYou should see the nginx configuration.
# Copy to nginx sites-available
sudo cp ~/cryptobot-nginx.conf /etc/nginx/sites-available/cryptobot
# Create symbolic link to enable it
sudo ln -s /etc/nginx/sites-available/cryptobot /etc/nginx/sites-enabled/cryptobot
# Test nginx configuration (should say "test is successful")
sudo nginx -t# Reload nginx to apply changes
sudo systemctl reload nginx
# Check nginx status
sudo systemctl status nginx# Test from VPS
curl http://72.60.56.80/cryptobot/
# Test API
curl http://72.60.56.80/cryptobot/api/statushttp://72.60.56.80/cryptobot/
# Check nginx error log
sudo tail -n 50 /var/log/nginx/error.log
# Check if config file is valid
sudo nginx -t# Check if bot is running
pm2 status
# Restart bot
pm2 restart cryptoBot
# Check logs
pm2 logs cryptoBot# Check UFW status
sudo ufw status
# Check if port is open
sudo netstat -tuln | grep 3001# Test from VPS itself
curl http://localhost:3001/
# If this works, it's definitely a firewall issue
# Apply Option 2 to open the port directlyFor production use, I recommend Option 1 with these additions:
# Install certbot
sudo apt install certbot python3-certbot-nginx
# Get SSL certificate (if you have a domain)
sudo certbot --nginx -d yourdomain.com# Install apache2-utils
sudo apt install apache2-utils
# Create password file
sudo htpasswd -c /etc/nginx/.htpasswd cryptobot
# Add to nginx config:
# location /cryptobot/ {
# auth_basic "CryptoBot Dashboard";
# auth_basic_user_file /etc/nginx/.htpasswd;
# ...
# }Add to nginx config:
limit_req_zone $binary_remote_addr zone=cryptobot:10m rate=10r/s;
location /cryptobot/ {
limit_req zone=cryptobot burst=20;
...
}VPS IP: 72.60.56.80
Bot Port: 3001
Bot Status: ✅ Running
Firewall: ❌ Blocking port 3001
Nginx: ✅ Installed and running
Config: ✅ Created at ~/cryptobot-nginx.conf
Action Needed: Apply Option 1 OR Option 2
Estimated Time: 2 minutes
Once you complete either option, you'll be able to:
-
Access Dashboard:
- Option 1:
http://72.60.56.80/cryptobot/ - Option 2:
http://72.60.56.80:3001/
- Option 1:
-
Initialize Bot:
- Click "Initialize System"
- Choose FAKE or REAL mode
- Set initial budget
-
Start Trading:
- Click "Start All Bots"
- View real-time stats
- Monitor trades
-
Auto-Deployment Works:
- Push to GitHub main branch
- Bot auto-updates
- No downtime!
ssh deploy@72.60.56.80
sudo cp ~/cryptobot-nginx.conf /etc/nginx/sites-available/cryptobot
sudo ln -s /etc/nginx/sites-available/cryptobot /etc/nginx/sites-enabled/cryptobot
sudo nginx -t && sudo systemctl reload nginxssh deploy@72.60.56.80
sudo ufw allow 3001/tcp && sudo ufw reloadChoose one option and run the commands. Your bot will be accessible in 2 minutes! 🚀