Block TCP Port 445: Top 3 Easy Methods for Windows 11, 10, 7 (2024)

Unveiling WannaCry: An Overview of the Cyberattack

WannaCry, also known as Wanna Decryptor ransomware has ran amuck on computers all over the world since the afternoon of May 12, 2017. Important files and documents are encrypted and are blackmailed for $300 to $600 value of virtual Bitcoin currency. By now, no effective decrypt methods found. Except for helpless waiting for the cure, there are some things we can do to prevent infection and make things better.

It is said that the WannaCry virus infect hard drive via TCP port 445 which opened by system during installing, so does to Petya variant virus. Following details how to block port 445 in Windows 7, 10, and XP in easy and simple ways. But before that, you may want to know what TCP port 445 is used for, so is the port 139.

Port 445 vs. Port 139: Understanding the Difference

Port 445 and port 139 are Windows ports. Port 139 is used for Network Basic Input Output System (NetBIOS) name resolution and port 445 is used for Server Message Blocks (SMB). They all serve Windows File and Printer Sharing.

In Windows 2000, Microsoft has created a new transport for SMB over TCP and UDP on port 445, which replaces the older implementation that was over ports 137, 138, 139. Keep port 445 and port 139 opened will leave the hard disks exposed on this port, i.e. you share your hard drives with any one that can access to this port, including deleting, formating, and implant virus and so on.

You may understand port 445 in this way. If you close port 445, you will not be able to copy any file system data to or from the path where port 445 is closed. In terms of domain host, this will definitely break group policy. You will lose browsing capabilities to networks past the intranet network as well.

  • How to Check If Port 445 Is Open or Not
  • How to Close Port 445 in Windows 11, 10, 7
  • Surviving WannaCry and Petya: Essential Tips for Staying Safe

How to Check ifPort 445 Is Open or Not

Although the port 445 is opened by system on Windows in most cases, it is necessary to check it on your host. Press Windows + R key combo to start Run box. Input “cmd” to start Command Prompt. Then type: “netstat –na” and press Enter. “netstat –na” command means scan all connected port and showing in numbers.

In one or two seconds, the picture will show up. Roll your mouse to the top and you’ll see the IP address of 445. In the last column, the status shows it is “LISTENING”. This means the TCP port 445 is opened.

How to Close Port 445 in Windows 11, 10, 7

Since it is one of the most dangerous ports on the Internet and made way for WannaCry attack, closingit becomes urgent. There are three methods to disable port 445 in Windows 10, 7 and XP in total. All are simple and easy to follow. Let’s get to know them one by one.

How to Block Port 445 in Windows Firewall

The first method is the easiest one and it is suitable for almost every Windows user.

1. Go Start > Control Panel > Windows Firewall and find Advanced settings on the left side.

2. Click Inbound Rules > New rule. Then in the pop-up window, choose Port > Next >TCP > Specific local ports and type 445 and go Next.

3. Choose Block the connection > Next. Tick the three checkboxes and click Next. Specify the name and description at your will and click Finish.

4. Check if you have created the rule by Properties > Protocols and Ports > Local Port.

Actually, there is another method to stop port 445 with the help of Windows Firewall. It is just in another manner. For those who are getting used to command line operations, method 2 would be their favorite.

How to Close TCP Port 445 Opened by System on Windows 7 via CMD

Command line operations take effect immediately and once executed, you cannot go back. Therefore, general users who are not familiar with this operate manner, please take with caution.

1. Type “cmd” in the search box, right click the cmd from the list and Run as administrator.

2. Input: netsh advfirewall set allprofile state on and press Enter.

3. Input: netsh advfirewall firewall add rule dir=in action=block protocol=TCP localport=445 name="Block_TCP-445" and press Enter.

Some users report that these methods do not work on their computers. When go back to Command Prompt to check, the port 445 is still in “LISTENING”. In that case, we can try the third method, which is also simple.

How to Block TCP Port 445 via RegEdit

Modifying registry of the system can also help you protect yourself from WannaCry ransomware. However, you cannot be more careful during the process of modifying registry. It is a database for Windows system programs and installed applications. These programs might not be able to run well if you delete any important file by accident. Please backup registry first just in case.

1. Open Run box in the same way. Type “regedit” and press Enter.

2. Navigate to the path:

HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\services\NetBT\Parameters

3. Right click the blank area and select New. Select DWORD (32-bit) Value or QWORD (64-bit) Value based on your system type (32 bit or 64 bit).

4. Rename the new value to SMBDeviceEnabled. Next, right click it and select Modify. In the pop-up window, change Value data from 1 to 0. Click OK to confirm.

This method is effective and almost applies to every computer user. If you just follow the steps strictly, no mistakes will be made. Please note that you need to disable Windows Server service to strengthen the protection for WannaCry cyber attack.

1. Type “services.msc” in Run box to open Windows Services.

2. Find Server and double click it. It is at the middle of the service events normally.

3. In the pop-up window, select Disabled from the drop-down list and click OK.

Tips:

*Above methods apply to how to block port 139, port 135, port 137 as well as port 138. Just replace port 445 with these ports in the steps. It is suggested to close all of them for temporary.

*If you want to enable or open port 445 in Windows 7 in the future, just delete the new created rule in Windows Firewall, or change the value data from 0 to 1, or just delete the value in Registry Editor or switch Disabled to Automatic in Server Properties.

Surviving WannaCry and Petya: Essential Tips for Staying Safe

Disabling TCP port 445 or other dangerous ports is one of the most important steps in against ransomware. Nevertheless, we can do more in other aspects. Below are tips listed by security experts.

1. Disconnect network access first and then boot your computer if you don’t know whether your computer are hacked.

2. Install Windows patches andanti-virus software.

3. Do not click suspicious links in emails or on websites.

4. Back up everything you care via backup software especially for WannaCry ransomware like free AOMEI Backupper Standard. Create bootable media is also available in case your computer fails to boot.

5. Backup on a regular basis.

In the End: Protecting Your System from Cyber Threats

WannaCry ransomware is a global cyberattack behavior that attracts everybody’s attention. What we need to do is arm ourselves and fight against malicious hackers. However, in addition to doing something (eg: block 445 port)to remedy the problem after it occurs, it's necessary to make a schedulebackup for your crucial data. Thus, with an exact copy of your data, you don't need to worry about data loss and won’t go mad next time facing similar issues.

Also, except for data, you still need to protect other important things on your PC, such as system, disk or partition.That way you won't be put in danger. If you still don't do so, download this free backup software - AOMEI Backupper to have a try!

You can backup any items you want, and enable its Schedule Backup to continuously protect your system and data. To avoid backup disk full, you can enable High compression level, Incremental andDifferential Backup, Backup Scheme according to your situation. Differential Backup and Backup Scheme are available on the professional version or higher.

Block TCP Port 445: Top 3 Easy Methods for Windows 11, 10, 7 (2024)

FAQs

How to block port 445 in Windows 11? ›

Step 1: Open the Control Panel Step 2: Click on Windows Firewall/ Windows Defender firewall Step 3: Navigate to advanced settings. Step 4:Right click on inbound rules and click on new rule. Step 6:Select port and press next Step 7:Specify the port 445 under specific local ports, select TCP and press next.

What happens if I block port 445? ›

Note that blocking TCP 445 will prevent file and printer sharing, including over apps – if this is required for business, you may need to leave the port open on some internal firewalls or use encryption keys.

How to check if port 445 is blocked? ›

On the diagnostics page, you can check the status for both ports 445, and 1433, and internet speed. If either 445 or 1433 are blocked you will receive an error when performing the respective test. For internet speed, if you are in an office environment, we recommend a minimum of 50 Mbps each way (Download & Upload).

How do I unblock port 445 in Windows 10? ›

-Go to Computer Configuration > Policies > Windows Settings > Security Settings > Windows Firewall with Advanced Security > Windows Firewall with Advanced Security - LDAP > Inbound Rules. -Right-click and choose New Rule. -Choose Port and click Next. -Choose TCP and at specific local ports enter 445, then click Next.

What is port 445 used for? ›

What is the use of port 445? Port 445 is a Microsoft networking port which is also linked to the NetBIOS service present in earlier versions of Microsoft Operating Systems. It runs Server Message Block (SMB), which allows systems of the same network to share files and printers over TCP/IP.

How do I stop Windows from listening to 445? ›

How to Close Port 445 in Windows 11, 10, 7
  1. Go Start > Control Panel > Windows Firewall and find Advanced settings on the left side.
  2. Click Inbound Rules > New rule. ...
  3. Choose Block the connection > Next. ...
  4. Check if you have created the rule by Properties > Protocols and Ports > Local Port.
Apr 26, 2024

Is port 445 a security risk? ›

Despite its utility, TCP 445's open nature can also be its Achilles' heel, exposing networks to unauthorized access and malicious exploits. Cybercriminals can leverage vulnerabilities in this port to inject malware, ransomware, or carry out Denial of Service (DoS) attacks.

What happens if you block a port? ›

If you block a port in your router, will it stop any malware or viruses from connecting or sending info out of your computer/device? Blocking connections (assuming incoming here, though you can block in either or both directions) to a port will block anything trying to connect to that specific port.

Why do ISPS block port 445? ›

The reason some services decide to block port 445 is due to historical reasons of vulnerabilities found in lower SMB versions. Ideally, the port should be blocked for only for SMB 1.0 traffic and SMB 1.0 should be turned off on all clients.

How do I know if my TCP port is blocked? ›

Type "Network Utility" in the search field and select Network Utility. Select Port Scan, enter an IP address or hostname in the text field, and specify a port range. Click Scan to begin the test. If a TCP port is open, it will be displayed here.

How to check if a local firewall is blocking a port? ›

To see if your firewall is blocking a website, app, or port on Windows, go to Windows Firewall > Advanced Settings and check your Outbound rules.

What ports should be blocked? ›

These are the ports most targeted by attackers:
  • Ports 137 and 139 (NetBIOS over TCP) and 445 (SMB)
  • Port 22 (SSH)
  • Port 53 (DNS)
  • Port 25 (SMTP)
  • Port 3389 (remote desktop)
  • Ports 80, 443, 8080 and 8443 (HTTP and HTTPS)
  • Ports 20 and 21 (FTP)
  • Port 23 (Telnet)

How do I unblock TCP ports? ›

Open ports in Windows Firewall
  1. From the Start menu, select Control Panel, select System and Security, and then choose Windows Firewall. ...
  2. Select Advanced Settings.
  3. Select Inbound Rules.
  4. Select New Rule in the Actions window.
  5. Choose the Port rule type.
  6. Select Next.
  7. On the Protocol and Ports page, choose TCP.
Jun 18, 2024

Is port 445 open by default? ›

It is recommended that you use port 445. This is because, by default, Windows 2000 and later versions use SMB over TCP/IP via port 445 rather than over NetBIOS whenever possible. If port 445 is disabled, it will fall back to NetBIOS using port 137, 138, or 139.

How do I block USB ports on Windows 11? ›

Method 4: Disable USB Ports via CMD

Then click Run as administrator on the right panel of Command Prompt. Step2: If you want to disable the USB ports on Windows 11 laptop, you need to input the command below: reg add HKLMSystemCurrentControlSetServicescdrom /t REG_DWORD /v “Start” /d 4 /f.

How do I block outgoing connections in Windows 11? ›

7 Steps to Block a Program in a Firewall on Windows
  1. Launch the Windows Defender Firewall's Advanced Security. ...
  2. Select Outbound Rules. ...
  3. Click New Rule. ...
  4. Select a Program. ...
  5. Proceed Through the Next Pages. ...
  6. Enter the Rule Name & Click Finish. ...
  7. Set Firewall Access for Services & Apps. ...
  8. Manage Alerts.
May 6, 2024

How do you secure port 445? ›

How To Keep These Ports Secure
  • Enable a firewall or endpoint protection to protect these ports from attackers. ...
  • Install a VPN to encrypt and protect network traffic.
  • Implement VLANs to isolate internal network traffic.
  • Use MAC address filtering to keep unknown systems from accessing the network.

Top Articles
Traffic Logs In ASA
5 Tips To Master Cryptocurrency Trading in 2022 | Canstar
Funny Roblox Id Codes 2023
Srtc Tifton Ga
Kreme Delite Menu
Camera instructions (NEW)
Wordscapes Level 6030
Danatar Gym
Occupational therapist
Fort Carson Cif Phone Number
oklahoma city for sale "new tulsa" - craigslist
Buckaroo Blog
Vichatter Gifs
Shariraye Update
Synq3 Reviews
Nioh 2: Divine Gear [Hands-on Experience]
Funny Marco Birth Chart
Hijab Hookup Trendy
Nyuonsite
Nutrislice Menus
Bj Alex Mangabuddy
Walmart stores in 6 states no longer provide single-use bags at checkout: Which states are next?
Moving Sales Craigslist
Beryl forecast to become an 'extremely dangerous' Category 4 hurricane
Vegas7Games.com
At&T Outage Today 2022 Map
Wisconsin Volleyball Team Boobs Uncensored
Reviews over Supersaver - Opiness - Spreekt uit ervaring
Jermiyah Pryear
Wku Lpn To Rn
Joann Fabrics Lexington Sc
Imagetrend Elite Delaware
Ezstub Cross Country
Ancestors The Humankind Odyssey Wikia
How to Watch the X Trilogy Starring Mia Goth in Chronological Order
Compare Plans and Pricing - MEGA
Sunrise Garden Beach Resort - Select Hurghada günstig buchen | billareisen.at
Überblick zum Barotrauma - Überblick zum Barotrauma - MSD Manual Profi-Ausgabe
Craigslist Free Manhattan
Taylor University Baseball Roster
Home Auctions - Real Estate Auctions
Craigslist Antique
Brake Pads - The Best Front and Rear Brake Pads for Cars, Trucks & SUVs | AutoZone
Nu Carnival Scenes
Fluffy Jacket Walmart
Yosemite Sam Hood Ornament
Dietary Extras Given Crossword Clue
Rubmaps H
Epower Raley's
Skybird_06
Invitation Quinceanera Espanol
Latest Posts
Article information

Author: Twana Towne Ret

Last Updated:

Views: 6683

Rating: 4.3 / 5 (64 voted)

Reviews: 87% of readers found this page helpful

Author information

Name: Twana Towne Ret

Birthday: 1994-03-19

Address: Apt. 990 97439 Corwin Motorway, Port Eliseoburgh, NM 99144-2618

Phone: +5958753152963

Job: National Specialist

Hobby: Kayaking, Photography, Skydiving, Embroidery, Leather crafting, Orienteering, Cooking

Introduction: My name is Twana Towne Ret, I am a famous, talented, joyous, perfect, powerful, inquisitive, lovely person who loves writing and wants to share my knowledge and understanding with you.