Does My Bot Need Port Forwarding?
No. Standard Discord bots do not require inbound port forwarding.What You Need to Allow
Your VPS, container, or host machine’s firewall must allow Outbound TCP Traffic on Port 443 (HTTPS) and Port 80 (HTTP). If your host rigidly blocks outbound traffic (common on strict enterprise networks or school networks), the bot will fail to start and throw one of the following errors:java.net.UnknownHostException(Java)Error: getaddrinfo ENOTFOUND discord.com(Node.js)WebSocket connection refused