Toolman 100% local

What port does Oracle use?

Oracle uses port 1521 over TCP.

PortProtocolNameWhat it is for
1521TCPOracle DatabaseOracle listener port.

What catches people out

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.

What should I watch out for with port 1521?

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