TCPRegistered PortFirewall: Usually Closed
7687

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

Port Number7687
ProtocolTCP
CategoryRegistered
Service NameNeo4j Bolt
Default FirewallUsually Closed
Port Test Commands

Copy-paste commands to check port 7687 (Neo4j Bolt) from your terminal

Test connectivity

Netcat (nc)Check if TCP port is reachable
nc -zv example.com 7687
curl (HTTP)Test HTTP response on this port
curl -v --max-time 5 http://example.com:7687/
TelnetBasic TCP port connectivity check
telnet example.com 7687
nmapScan port 7687 with service detection
nmap -p 7687 -sV example.com
Bash /dev/tcpPure bash TCP check (no extra tools needed)
(echo > /dev/tcp/example.com/7687) 2>/dev/null && echo "open" || echo "closed"

Open port in firewall

UFW (Ubuntu / Debian)
sudo ufw allow 7687/tcp
iptables
sudo iptables -A INPUT -p tcp --dport 7687 -j ACCEPT
firewalld (RHEL / CentOS)
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

Related Ports