Go Premium for a chance to win a PS4. Enter to Win

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 433
  • Last Modified:

unbind port in Windows 7 after server crash

Hi Experts,
I've tried just about everything to unbind a port - I need to restart the machine after the server fails because when I do a "netstat -ano", I see that the process ID belongs to "system" and there's no way to kill the process with the process ID given on the command line- it doesn't even exist in task manager.  Does anyone know how to make this port available again without restarting?

Thanks a lot,
Mike
0
thready
Asked:
thready
1 Solution
 
jkrCommented:
Well, how did you end up opening that port?
0
 
Jeremy TyreCommented:
I am not sure if this is what you are looking for, but you can stop a process with the below command:

TASKKILL /F /PID processid

Open in new window


That should also open the port up.
0
 
sarabandeCommented:
it doesn't even exist in task manager

it would show-up if you run the task manager as administrator. that can be done from command line using the runas command or by right-click to a desktop link (icon) pointing to taskmgr.exe and choosing to run as administrator.

alternatively you may think of making the service stoppable. you can do that be avoiding infinite waits but only have waits with timeout. in a timeout pause you may check for a stop command given by the user. those commands could be send by various p2p actions such as sockets, events, windows messages, ...

Sara
0
 
threadyAuthor Commented:
Awesome, thanks Sara!
0
 
threadyAuthor Commented:
Task kill did not work by the way...  would work if run as admin though.
0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Tackle projects and never again get stuck behind a technical roadblock.
Join Now