Solved

unbind port in Windows 7 after server crash

Posted on 2014-07-18
5
408 Views
Last Modified: 2014-07-21
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
Comment
Question by:thready
5 Comments
 
LVL 86

Expert Comment

by:jkr
ID: 40204903
Well, how did you end up opening that port?
0
 
LVL 3

Expert Comment

by:Jeremy Tyre
ID: 40204906
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
 
LVL 33

Accepted Solution

by:
sarabande earned 500 total points
ID: 40208594
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
 
LVL 1

Author Closing Comment

by:thready
ID: 40208630
Awesome, thanks Sara!
0
 
LVL 1

Author Comment

by:thready
ID: 40208632
Task kill did not work by the way...  would work if run as admin though.
0

Featured Post

Windows Server 2016: All you need to know

Learn about Hyper-V features that increase functionality and usability of Microsoft Windows Server 2016. Also, throughout this eBook, you’ll find some basic PowerShell examples that will help you leverage the scripts in your environments!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
DIal UP Interface 3 30
Name space syntax error 12 41
Windows 7 Desktop very slow 13 37
Linksys 4 port wireless router 62 45
New Windows 7 Installations take days for Windows-Updates to show up and install. This can easily be fixed. I have finally decided to write an article because this seems to get asked several times a day lately. This Article and the Links apply to…
When you try to share a printer , you may receive one of the following error messages. Error message when you use the Add Printer Wizard to share a printer: Windows could not share your printer. Operation could not be completed (Error 0x000006…
This Micro Tutorial will give you a introduction in two parts how to utilize Windows Live Movie Maker to its maximum editing capability. This will be demonstrated using Windows Live Movie Maker on Windows 7 operating system.
The viewer will learn how to clear a vector as well as how to detect empty vectors in C++.

910 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

25 Experts available now in Live!

Get 1:1 Help Now