Neo4j Bolt
What is Port 7687?
Port 7687 is the default port for Neo4j's Bolt protocol, a binary protocol designed for efficient communication between Neo4j client drivers and the database server. Bolt was introduced in Neo4j 3.0 as a more efficient alternative to the HTTP REST API. It supports type-safe serialization, connection pooling, and efficient result streaming. All official Neo4j drivers (Java, Python, .NET, JavaScript, Go) use the Bolt protocol. Bolt supports TLS encryption for secure communication. The protocol handles Cypher query execution, transaction management, and result set retrieval. In production Neo4j deployments, application code connects via Bolt on port 7687 rather than the HTTP API on port 7474.
Common Uses
- Application connections to Neo4j database
- Cypher query execution via Neo4j drivers
- Transaction management and graph operations
- Production database client connectivity
Technical Details
Copy-paste commands to check port 7687 (Neo4j Bolt) from your terminal
Test connectivity
nc -zv example.com 7687
curl -v --max-time 5 http://example.com:7687/
telnet example.com 7687
nmap -p 7687 -sV example.com
(echo > /dev/tcp/example.com/7687) 2>/dev/null && echo "open" || echo "closed"
Open port in firewall
sudo ufw allow 7687/tcp
sudo iptables -A INPUT -p tcp --dport 7687 -j ACCEPT
sudo firewall-cmd --permanent --add-port=7687/tcp && sudo firewall-cmd --reload
Security Considerations
Enable TLS encryption for Bolt connections (bolt+s:// or neo4j+s:// URI scheme). Use strong authentication credentials. Implement connection limits to prevent resource exhaustion. Restrict port 7687 access to application servers only via firewall rules. Use Neo4j's role-based access control for fine-grained permissions.
Popular Ports Reference
The most commonly used and referenced network ports