-1
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
1
Port 135 is already officially registered. You should use unregistered ports. IANA maintains the Service Name and Transport Protocol Port Number Registry. You take your chances when using a registered port.
– Ron Maupin – 2015-12-12T04:49:45.8772What is your outer problem? What are you trying to solve? – David Schwartz – 2013-11-04T06:01:49.980
Actually i am trying socket programming (TCP server) but the error is coming as port 135 is in use and i can see port 135 listening through netstat. So , i want to stop port 135 to make TCP server program run. – Sika Shrestha – 2013-11-05T04:42:15.590
1Change your program to use an unprivileged port (greater than or equal to 1,024). – David Schwartz – 2013-11-07T04:54:59.280