What port does SQL Server use?
SQL Server uses port 1433 over TCP.
| Port | Protocol | Name | What it is for |
|---|---|---|---|
| 1433 | TCP | Microsoft SQL Server | The 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
- What port does Oracle use?
- 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?