PortScan › Port guide › Port 1433

Port 1433 (MS SQL Server): The Risks of a Database Open to the Internet

TCP 1433MS SQL ServerDatabaseExposure risk: High

Port 1433 is the SQL Server default port. Brute forcing the sa account and abusing xp_cmdshell can hand over the whole server. Check exposure and harden it.

What is port 1433?

Port 1433 is Microsoft SQL Server's default TCP port. Named instances use dynamic ports, and the SQL Browser service on UDP port 1434 tells clients which one.

As a rule, a database should be reachable only from application servers. If port 1433 is visible from the internet, the design was usually wrong from the start.

When it is normally open

Risks if it is open

Brute forcing the sa account

sa, the administrator account for SQL authentication, is the first account bots try. Servers with an endless stream of Login failed for user 'sa' in their port 1433 logs are common.

Taking over the OS via xp_cmdshell

With database administrator privileges, xp_cmdshell can run operating system commands. Cases of ransomware and coin miners being installed through exposed MSSQL servers are reported steadily.

Security checklist

How to check whether port 1433 is open

From outside (is it exposed to the internet?)

Whether your server or home router accepts port 1433 from the internet can only be confirmed by connecting from outside. A check from inside the same network bypasses the router's firewall and gives a different answer.

PortScan opens a real TCP connection from the Cloudflare edge and reports Open, Closed or Filtered. Members can scan every port on their own IP for free and other targets free once a day.

Check port 1433

On the server (what is listening?)

Windows (PowerShell):

netstat -ano | findstr ":1433 "
Get-NetTCPConnection -LocalPort 1433 -State Listen | Select LocalAddress,OwningProcess

Linux:

sudo ss -tlnp | grep ':1433 '

If it listens on 0.0.0.0 or [::] it is open on every network; 127.0.0.1 means only that machine can connect. To test port 1433 on a server from another computer, use Test-NetConnection server-address -Port 1433 on Windows or nc -vz server-address 1433 on Linux and macOS.

How to close or restrict port 1433

The best fix is to turn the service off or make it listen only on 127.0.0.1 (see the checklist above). If you need the service but must keep it off the internet, use a firewall.

Windows Firewall

# Administrator PowerShell
New-NetFirewallRule -DisplayName "Block TCP 1433" -Direction Inbound -Protocol TCP -LocalPort 1433 -Action Block
# To allow a single IP instead (block rules take precedence, so use this instead of the rule above)
New-NetFirewallRule -DisplayName "Allow TCP 1433 from office" -Direction Inbound -Protocol TCP -LocalPort 1433 -RemoteAddress 203.0.113.10 -Action Allow

Linux (ufw)

sudo ufw deny 1433/tcp
# Allow a single IP only
sudo ufw allow from 203.0.113.10 to any port 1433 proto tcp

On a cloud server, also check port 1433 in the security group (inbound rules), which is separate from the OS firewall. For services running in Docker, the rules Docker creates can bypass ufw, so binding the port to localhost with -p 127.0.0.1:1433:1433 is the reliable option.

Router

At home or in a small office, open the router's admin page and check whether port 1433 is in the port forwarding list, whether DMZ is enabled, and whether any program opened ports by itself through UPnP. If any of the three applies, port 1433 on your PC is directly visible from the internet.

How to read the scan result

The verdict can depend on where you connect from. Many ISPs (including most Korean ISPs) block some ports such as 135, 139 and 445 on their network, so the same server can look Filtered from inside that network and Closed from abroad.

FAQ

Is it safe if I move SQL Server off port 1433?
Automated bot attacks drop, but a full port sweep finds it quickly. Restricting access by IP is the real fix.
3306 MySQL / MariaDB5432 PostgreSQL27017 MongoDB

Last updated 2026-11-04 · Use this guide to check systems you manage. Scanning systems without permission may carry legal liability.