Solved

unbind port in Windows 7 after server crash

Posted on 2014-07-18
5
405 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
Comment Utility
Well, how did you end up opening that port?
0
 
LVL 3

Expert Comment

by:Jeremy Tyre
Comment Utility
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 32

Accepted Solution

by:
sarabande earned 500 total points
Comment Utility
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
Comment Utility
Awesome, thanks Sara!
0
 
LVL 1

Author Comment

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

Featured Post

What Is Threat Intelligence?

Threat intelligence is often discussed, but rarely understood. Starting with a precise definition, along with clear business goals, is essential.

Join & Write a Comment

Go is an acronym of golang, is a programming language developed Google in 2007. Go is a new language that is mostly in the C family, with significant input from Pascal/Modula/Oberon family. Hence Go arisen as low-level language with fast compilation…
Are you one of those front-line IT Service Desk staff fielding calls, replying to emails, all-the-while working to resolve end-user technological nightmares? I am! That's why I have put together this brief overview of tools and techniques I use in o…
The goal of the video will be to teach the user the difference and consequence of passing data by value vs passing data by reference in C++. An example of passing data by value as well as an example of passing data by reference will be be given. Bot…
The viewer will learn how to successfully download and install the SARDU utility on Windows 7, without downloading adware.

771 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

10 Experts available now in Live!

Get 1:1 Help Now