PortGate

Resources · Troubleshooting · Q&A

The app cannot connect to the AI proxy

The proxy listens on 127.0.0.1:8787 only after ai-proxy or all mode is installed. A server-only install does not start it.

Check command

ss -tulpn | grep 8787

Copied.

OPENAI_BASE_URL=http://127.0.0.1:8787/v1 fails with connection refused when the proxy service is not running. Server mode does not start it.

ss -tulpn | grep 8787
systemctl status portgate-ai-proxy --no-pager

If the unit is missing, re-run the installer with --mode ai-proxy or --mode all. The listen address stays on 127.0.0.1. Do not publish 8787 on 0.0.0.0.