I am learning Socket Programming (TCP server) On Windows 7, but an error message that keeps coming is:
port 135 is in use.
I can see Port 135 listening through netstat
. So , I want to stop port 135 to make the TCP server program run.
I have done the following things.
Navigate over to the key:
HKEY_LOCAL_MACHINE\Software\Microsoft\OLE
At the right column, locate the value
EnableDCOM
and modify the value toN
.Navigate to this registry key:
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\RPC
Right click on & Modify the value named
DCOM Protocols
Under the keyValue Data
, you will see values like below (or something similar). These values keep Port 135 open. Highlight everything listed and delete all existing data, thus disabling theDCOM
service throughdcomcnfg
.
But the Port 135 is still listening. How do I stop listening on that port?
I found the instructions here:
http://www.pimp-my-rig.com/2008/10/faq-disable-port-135-disable-dcom.html#sthash.Bt1qMvEf.dpuf