Port 445
Port 445 SMB file sharing
Windows file and printer sharing listens on port 445. Exposed to the internet, it is one of the most attacked services there is.
What is port 445 used for?
Port 445 is where SMB (Server Message Block) listens on TCP. Windows uses it to share files and printers, and domain services use it to reach the named pipes behind remote management. Samba speaks the same protocol on Linux and storage appliances.
Older networks also run SMB over NetBIOS on ports 137 to 139. Modern Windows talks to port 445 directly.
Why attackers want it
An exposed SMB server can give away file shares, user names and a way into the domain. Worms such as WannaCry spread through EternalBlue (CVE-2017-0144), a flaw in the old SMBv1 protocol, and ransomware crews still look for SMB to move from one machine to the next.
Who scans port 445
Every address that scanned port 445 from 28 October to 27 November 2026, with known scanners left out.
- AS7713Telekomunikasi Indonesia (PT) 5.459
- AS12389PJSC Rostelecom 3.242
- AS45899VNPT Corp 3.129
- AS8452TE-AS 2.800
- AS29465MTN NIGERIA Communication limited 2.712
- AS14061DigitalOcean, LLC 2.672
- AS4134Chinanet 2.226
- AS3462Chunghwa Telecom Co., Ltd. 2.165
- AS36947Telecom Algeria 2.012
- AS23969TOT Public Company Limited 1.841
- Indonesia 10.317
- India 7.633
- Russian Federation 7.293
- People's Republic of China 5.530
- Vietnam 5.174
- United States of America 4.434
- Thailand 3.662
- Nigeria 3.557
- Egypt 3.392
- Taiwan, Province of China 2.438
Should port 445 be open?
Port 445 should never be reachable from the internet. Block it at the edge in both directions, and give remote users file access through a VPN instead.
Block it at the edge
Drop inbound TCP 445 on every firewall and cloud security group, and block outbound 445 so a compromised machine cannot reach SMB servers outside.
Turn off SMBv1
Remove SMBv1 on Windows and Samba. Current systems speak SMB 2 and 3, which also support signing and encryption.
Reach shares another way
Use a VPN for remote file access, or SMB over QUIC where your Windows Server version supports it.
Port 445 questions
What is port 445 used for?
Port 445 carries SMB, the protocol Windows uses for file sharing, printer sharing and remote management through named pipes. Samba uses it on Linux and storage appliances.
Is it safe to open port 445 to the internet?
No. SMB was built for local networks. An exposed port 445 invites password guessing, relay attacks and exploits for flaws such as EternalBlue. Keep it inside your network and use a VPN for remote access.
What is the difference between port 445 and port 139?
Port 139 carries SMB over NetBIOS, the older way of running it. Port 445 carries SMB directly over TCP and is what modern Windows uses. Both should stay closed to the internet.
How do I block port 445?
Add a rule that drops inbound and outbound TCP 445 on your firewall or cloud security group. Blocking the addresses that scan for it, with an IP blocklist, also stops them before they reach any other service.
Block the sources that scan port 445.
An hourly IP feed of active scanners keeps them away from this port and everything else you run.