Toolman

What port does SQL Server use?

SQL Server uses port 1433 over TCP.

PortProtocolNameWhat it is for
1433TCPMicrosoft SQL ServerThe default port for MS SQL Server.

Exposing it

Never expose a database directly to the internet. Put it behind a VPN or a private network.

Checking it is listening

sudo lsof -i :1433          # macOS, Linux
netstat -ano | findstr :1433   # Windows
nc -zv host 1433               # 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 SQL Server use?

SQL Server uses port 1433 over TCP. The default port for MS SQL Server.

Is port 1433 safe to expose to the internet?

Never expose a database directly to the internet. Put it behind a VPN or a private network.

How do I check whether SQL Server is listening?

sudo lsof -i :1433 on macOS or Linux, netstat -ano | findstr :1433 on Windows. From another machine, nc -zv host 1433 says whether anything answers.

Other services

Port 1433 in full · Every service · All port numbers