Port 9200: Elasticsearch HTTP

Port 9200 (TCP) is used by Elasticsearch HTTP. Elasticsearch REST API. Thousands of databases leaked by leaving it public (unofficial use).

9200Port
TCPProtocol
wap-wspIANA service name
DatabasesCategory

Port range

9200 is a registered port (range 1024–49151). Any user can bind to it; IANA records which service registered the number.

Security

Port 9200 should not be reachable from the public internet. Restrict it to trusted networks or a VPN, and scan your public IP to confirm it is closed.

Open port 9200 in a firewall

ufw         sudo ufw allow 9200/tcp
iptables    sudo iptables -A INPUT -p tcp --dport 9200 -j ACCEPT
firewalld   sudo firewall-cmd --permanent --add-port=9200/tcp
Windows     New-NetFirewallRule -DisplayName "Elasticsearch HTTP 9200" -Direction Inbound -Protocol TCP -LocalPort 9200 -Action Allow

Check if port 9200 is open

nc -vz example.com 9200
Test-NetConnection example.com -Port 9200   # PowerShell
sudo ss -tulpn | grep ':9200 '   # what is listening locally (Linux)

Other databases ports

Frequently asked questions

What is port 9200 used for?
Elasticsearch HTTP. Elasticsearch REST API. Thousands of databases leaked by leaving it public (unofficial use).
Is port 9200 TCP or UDP?
TCP.