What port does Oracle use?
Oracle uses port 1521 over TCP.
| Port | Protocol | Name | What it is for |
|---|---|---|---|
| 1521 | TCP | Oracle Database | Oracle listener port. |
Exposing it
Same rule — databases belong on a private network.
Checking it is listening
sudo lsof -i :1521 # macOS, Linux
netstat -ano | findstr :1521 # Windows
nc -zv host 1521 # 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 Oracle use?
Oracle uses port 1521 over TCP. Oracle listener port.
Is port 1521 safe to expose to the internet?
Same rule — databases belong on a private network.
How do I check whether Oracle is listening?
sudo lsof -i :1521 on macOS or Linux, netstat -ano | findstr :1521 on Windows. From another machine, nc -zv host 1521 says whether anything answers.
Other services
- What port does MongoDB use?
- What port does Redis use?
- What port does Memcached use?
- What port does Elasticsearch use?
- What port does DNS use?
- What port does NTP use?
- What port does SMB use?
- What port does NFS use?
- What port does SNMP use?
- What port does Syslog use?
- What port does RabbitMQ use?
- What port does Prometheus use?