Skip to content

Troubleshooting Guide ​

Fresh

Diagnostic Tool ​

Always start troubleshooting with:

bash
ngrok diagnose

This runs a series of tests to identify connection issues.

Decision Tree ​

Common Issues ​

Installation Issues ​

IssueSolution
ngrok not recognized as commandAdd install folder to PATH; open new terminal
Download blockedAdd antivirus exception for ngrok executable
Permission deniedRun terminal as Administrator

Connection Issues ​

IssueSolution
Cannot connect to ngrok serviceCheck firewall allows outbound port 443
Authentication failedVerify authtoken with ngrok config check
DNS resolution failedCheck internet connectivity; ngrok uses fallback DNS
TLS verification failedUpdate ngrok to latest version: ngrok update
Rate limitedWait and retry; check account plan limits

Tunnel Issues ​

IssueSolution
502 Bad GatewayLocal service is not running or crashed
Connection refusedWrong port number; verify with netstat -ano
ERR_NGROK_8012Account tunnel limit reached; close other tunnels
Tunnel session expiredFree plan session limit; restart ngrok
Slow performanceCheck local service performance; upgrade plan for more bandwidth

Windows Service Issues ​

IssueSolution
Exit code 5Config file not found; verify path in service install
Input/output errorSame as exit code 5; check file permissions
Service won't startCheck Windows Event Log (eventvwr.msc)
Service stops unexpectedlyCheck Event Log; verify upstream services
Service doesn't start on bootVerify service is set to "Automatic" startup

Config File Issues ​

IssueSolution
YAML syntax errorRun ngrok config check for validation
Unknown propertyCheck you're using the correct config version (v3)
Endpoints not startingVerify indentation; YAML is whitespace-sensitive
Config not foundDefault: %HOMEPATH%\AppData\Local\ngrok\ngrok.yml

Network Diagnostics ​

Check if port 443 is accessible ​

bash
# PowerShell
Test-NetConnection connect.ngrok-agent.com -Port 443

Check DNS resolution ​

bash
nslookup connect.ngrok-agent.com

Check local service is running ​

bash
netstat -ano | findstr :8080

Getting Help ​

See Also ​

Built with VitePress + Claude RAG Chat