How to disable dangerous port 137,138,139 in windows

Source: Internet
Author: User

The easiest way to close a 137,138,139 dangerous port is: choose "start"> "Settings"> "network and dial-up connections"> "Local Connection"> "TCP/IP properties"> "advanced"> "WINS", and select "Disable NETBIOS on TCP/IT" to view the currently opened port. You can start using- run-cmd-netstat-na, you can use this command to check whether the three ports are closed and will not affect the use of the ports. This is only one method, but there are more methods.

Port 137: port 137 is mainly used for "NetBIOS Name Service" (NetBIOS Name Service ).

All ports 138 belong to UDP ports. When they transmit file information to each other in the LAN, this will take effect. Port 138 is mainly used to provide the computer name browsing function in the NetBIOS environment.


Port 138 is open for sharing. You should prohibit others from sharing your machine, so disable all these ports: click Start> Control Panel> system> hardware> Device Manager, Click Show Hidden devices under view, and double-click plug-and-play driver ", find and double-click NetBiosoverTcpip. In the "NetBiosoverTcpip properties" window, click "do not use this device (disable)" under the "General" tab )", click OK and restart.

Port 139: port 139 is provided for "NetBIOS Session Service" and is mainly used to provide Windows file and printer sharing and Samba Service in Unix.

Close Method

Start-set-network and dial-up connection-local connection-TCP/IP properties-advanced-WINS-select 'Disable NETBIOS on TCP/IT'
To view the opened port, Run "start-run-cmd-netstat-na". After you change the port, run the following command to check whether the three ports are closed, this is actually only one type, and there are more methods.

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.