Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I'm trying to disable services that I do not need, to improve latency and improve security.

I found that port 445 is still open by doing telnet on localhost and port 445. As I do not need port 445, I would prefer to close it.

How can I find out who is listening on port 445 and how do I disable it?

Note that I do not want to block port 445 using the firewall or something like that, but want to disable the program that has port 445 open.

share|improve this question

4 Answers 4

up vote 3 down vote accepted
+50

Following is just quotation of two different sources which I used to successfully disable port 445 on Windows XP machines. I was closing port 445 and 135, 137 - 139, so I followed all instruction in the article and it worked for me.

General information about port 445

Among the new ports used by Windows 2000 is TCP port 445 which is used for SMB over TCP. The SMB (Server Message Block) protocol is used among other things for file sharing in Windows NT/2000/XP. In Windows NT it ran on top of NetBT (NetBIOS over TCP/IP), which used the famous ports 137, 138 (UDP) and 139 (TCP). In Windows 2000/XP, Microsoft added the possibility to run SMB directly over TCP/IP, without the extra layer of NetBT. For this they use TCP port 445.

At its simplest NetBIOS on your LAN may just be a necessary evil for legacy software. NetBIOS on your WAN or over the Internet, however, is an enormous (read foolish...) security risk. All sorts of information, such as your domain, workgroup and system names, as well as account information is obtainable via NetBIOS. It really is in your best interests to ensure that NetBIOS never leaves your network.

If you are using a multi-homed machine i.e. more than 1 network card, then you should disable NetBIOS on every network card, or Dial-Up Connection under the TCP/IP properties, that is not part of your local network.

How to disable port 445

To disable Port 445:

Add the following registry key:

Key: HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\NetBT\Parameters Name: SMBDeviceEnabled Type: DWORD (REG_DWORD) Data: 0

Don’t forget to restart your computer after disabling the above ports for effect. Also, to check that those ports are disabled, you can open a command prompt and type netstat -an to confirm that your computer is no longer listening to those ports.

share|improve this answer
    
Wouldn't disabling port 445 be the same as using a firewall? Fixing a symptom rather than the cause. Instead would disabling just NetBIOS prevent port 445 from opening? Just asking. (If not, maybe the OP really has to disable the port) –  nixda Aug 11 '13 at 14:14
    
I was preventing computers in the network to talk to each other using Windows network futures. You know Windows network - it is horrible insecure. One computer has virus and it spreads around (yes, using mentioned above ports). In my case I do not need those computers even to know about existence of each other, but I do still need them to be in the same network segment. So, firewall was not a solution for me. –  Nikolay Aug 11 '13 at 14:19
    
i've tried that and it works on windows server 2008 r2 sp1 too. –  javapowered Aug 11 '13 at 15:02
    
also I've found this useful article ssj100.fullsubject.com/… –  javapowered Aug 11 '13 at 15:37
    
Agree! This article is in my answer (: Second link. –  Nikolay Aug 11 '13 at 15:38

Port 445 = SMB = Printer and File Sharing. So disable the file sharing in the network connection options to close the port.

share|improve this answer
1  
I've disabled Printer and File sharing but port still opened. –  javapowered Aug 8 '13 at 18:53
    
According to thus list: en.wikipedia.org/wiki/List_of_TCP_and_UDP_port_numbers 445 is also used for Active Directory. Do you host this? –  magicandre1981 Aug 8 '13 at 18:55
1  
no I do not need anything and I want to disable everything, i'm using server for trading. –  javapowered Aug 8 '13 at 19:24

Start-run-services.msc, disable Server service.

share|improve this answer
1  
i did it but I still able to connect to port 445 on localhost –  javapowered Aug 11 '13 at 13:34

Use TCPView to find out which program is listening on port 445.

If the listener is svchost.exe, this is then a system service. To guess which one, note down its PID, go to Task Manager, tab Services and click on PID to sort by it. There will be several services with this PID, and all of them are candidates. If you cannot decide which one, post the names of the candidate services so we can comment on them.

Please note that an open port does not need to have a listener. A port is called "open" when it is not blocked by the firewall.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.