Click here to Skip to main content
15,889,725 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
WIN7 admin
The process normal use PORT 30160 end with abnormal, but still occupied port.
Use cmd, netstat cmd show: TCP 0.0.0.0:30160 0.0.0.0:0 4392, the pid is 4392.
But, the task manager cannot find the process.
I use the function "TerminateProcess" , error code 5 (Access denied).
How to end it?
Posted
Updated 17-Sep-14 23:42pm
v2
Comments
Richard MacCutchan 18-Sep-14 5:43am    
If the process terminates then it has terminated. The port will remain active and pointing at that process id until it times out or the connection is force closed.
Member 10717194 18-Sep-14 5:57am    
It's still occupied after 30 minutes. is this normal?
_Asif_ 18-Sep-14 5:55am    
you can use process viewer from sysinternal to verify and you can also kill process from there too
Member 10717194 18-Sep-14 6:15am    
Use TCPView from sysinternal can find the process, but still cann't Terminate the Process.
the process name is "<non-existent>"
process pid Protocol LocalAddress Local Port RemoteAdd Remote Port
non-existent 4392 TCP admin 30160 admin 0 LISTENING

1 solution

You can try the tool Open Ports Scanner[^]

It should be possible to force close ports with this tool.


Description:
This system utility monitors open TCP and UDP ports, connections and software applications that open these connections. It brings you an enhanced functionality of a similar tool that comes with Windows operating system: netstat. Open Ports Scanner in addition to the ports information available from your operating system, allows you to map an open port to the process ID running on your computer. You may easily catch spyware, malware and trojans when using this tool. Just search for suspicious TCP connections. You may instantly terminate unwanted connections right from this software. Monitoring features include TCP or UDP view filter and refresh speed timer. Full list of displayed data includes protocol name, process name, process ID, local port, local address, remote port, remote address and connection status. You may instantly close an open unwanted connection or export / print the list of open ports into a text file for future research.
 
Share this answer
 
Comments
Member 10717194 18-Sep-14 6:37am    
It doesn't work.
George Jonsson 18-Sep-14 6:50am    
Too bad.
I thought it was worth a try.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900