What port does Elasticsearch use?
Elasticsearch uses port 9200 over TCP.
| Port | Protocol | Name | What it is for |
|---|---|---|---|
| 9200 | TCP | Elasticsearch | The Elasticsearch HTTP API. |
What catches people out
Unauthenticated Elasticsearch clusters have caused some of the largest data leaks on record. Enable security and bind privately.
Checking it is listening
sudo lsof -i :9200 # macOS, Linux
netstat -ano | findstr :9200 # Windows
nc -zv host 9200 # from elsewhere
An "address already in use" error on a port nothing appears to be holding usually means the socket is in TIME_WAIT rather than that a process has it — the ports reference covers that and the ephemeral range.
Frequently asked questions
What port does Elasticsearch use?
Elasticsearch uses port 9200 over TCP. The Elasticsearch HTTP API.
What should I watch out for with port 9200?
Unauthenticated Elasticsearch clusters have caused some of the largest data leaks on record. Enable security and bind privately.
How do I check whether Elasticsearch is listening?
sudo lsof -i :9200 on macOS or Linux, netstat -ano | findstr :9200 on Windows. From another machine, nc -zv host 9200 says whether anything answers.