localhost:7474 (Neo4j): connection refused and fixes
Port 7474 is the Neo4j Browser page. How to open it, connect on 7687 and fix errors.
Open this address: http://localhost:7474This opens on your own computer. It only works if the program is running.
localhost:7474 is the Neo4j Browser, the web page for running queries. The database itself speaks Bolt on port 7687, and the page connects to it.
What runs on localhost:7474
- Neo4j graph database
Commands to start and test port 7474
docker run -d -p 7474:7474 -p 7687:7687 -e NEO4J_AUTH=neo4j/change-me-please neo4jcurl -I http://localhost:7474Find what is using port 7474
Run these in a terminal on your computer. Nothing is sent to this site.
If localhost:7474 will not open
- Which Neo4j port is which
- Neo4j’s manual: 7474 is HTTP for Neo4j Browser and the HTTP API, 7473 is HTTPS (off by default), and 7687 is Bolt, which Cypher Shell, Neo4j Browser and the drivers use. The listen addresses are
server.http.listen_address,server.https.listen_addressandserver.bolt.listen_address. The interface they bind comes fromserver.default_listen_address. - The browser connects but cannot log in
- Use the username and password you set. Bolt uses port 7687, so keep that port open too.
- Connection refused on bolt://localhost:7687
- Publish port 7687 as well as 7474 when you run Neo4j in Docker.
- Port 7474 is already in use
- Another program is on this port. Find it with the tool below and stop it, or start yours on another port.
- 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 7474
| Port | Usually used by |
|---|---|
| localhost:3306 | MySQL, MariaDB |
| localhost:5432 | PostgreSQL |
| localhost:27017 | MongoDB |
| localhost:6379 | Redis |
| localhost:11211 | Memcached |
| localhost:1433 | Microsoft SQL Server |
| localhost:5984 | CouchDB |
Questions about localhost:7474
- What are 7474 and 7687?
- 7474 is the web page. 7687 is the Bolt port that drivers and the page use to talk to the database.
- Is localhost:7474 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.