Toolman

What port does Oracle use?

Oracle uses port 1521 over TCP.

PortProtocolNameWhat it is for
1521TCPOracle DatabaseOracle 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

Port 1521 in full · Every service · All port numbers