localhost:8001 (Kong Admin API): not working and fixes
Port 8001 is the default Kong Admin API port. How to open it, test it and fix errors.
Open this address: http://localhost:8001This opens on your own computer. It only works if the program is running.
localhost:8001 is the default Kong Gateway Admin API. It returns JSON, not a web page. Kong’s web interface, Kong Manager, uses 8002 by default.
What runs on localhost:8001
- Kong Gateway Admin API (default port 8001)
- Some other dev servers also pick 8001 when 8000 is busy
Commands to test port 8001
curl -i http://localhost:8001/curl http://localhost:8001/serviceslsof -i :8001Find what is using port 8001
Run these in a terminal on your computer. Nothing is sent to this site.
If localhost:8001 will not open
- The Admin API controls the whole gateway
- Anyone who can reach port 8001 can change routes and services. Keep it on localhost or a private network. Kong’s documentation says to prevent unauthorized access to the Admin API ports in production.
- Connection refused
- Kong is not running, or
admin_listenis set to another address or turned off. Start Kong and check the setting. - Port 8001 is already in use
- Another program is on this port. Find it with the tool below and stop it, or change
admin_listen. - It works in Docker but not from your computer
- Publish the port with
-p 8001:8001and make sure Kong listens on 0.0.0.0 inside the container. - Which Kong port is which
- Kong’s defaults are 8000 (proxy HTTP), 8443 (proxy HTTPS), 8001 (Admin API HTTP), 8444 (Admin API HTTPS), 8002 (Kong Manager) and 8445 (Kong Manager HTTPS).
- This site can’t be reached (ERR_CONNECTION_REFUSED)
- The program is not running. Start it and keep that terminal open. See the full checklist.
- Works on your computer, not on your phone
- Start the server on all network addresses and use your computer’s IP address. See how to open localhost from your phone.
Other ports like 8001
| Port | Usually used by |
|---|---|
| localhost:11434 | Ollama (AI models) |
| localhost:5601 | Kibana |
| localhost:11501 | Khajane 2 helper (reported) |
| localhost:9200 | Elasticsearch |
| localhost:5672 | RabbitMQ |
| localhost:15672 | RabbitMQ admin page |
| localhost:9090 | Prometheus |
Questions about localhost:8001
- Is 8001 the proxy port?
- No. The proxy is 8000 by default. See the port 8000 page.
- Is localhost:8001 safe?
- Yes, as long as it stays on localhost. Only your own computer can reach it. It becomes reachable from other devices only if you start the program on 0.0.0.0 or your computer's IP address. Do not put development or admin tools on the public internet.