Solved

unbind port in Windows 7 after server crash

Posted on 2014-07-18
5
415 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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 34

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

Comprehensive Backup Solutions for Microsoft

Acronis protects the complete Microsoft technology stack: Windows Server, Windows PC, laptop and Surface data; Microsoft business applications; Microsoft Hyper-V; Azure VMs; Microsoft Windows Server 2016; Microsoft Exchange 2016 and SQL Server 2016.

Question has a verified solution.

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

The recent Microsoft changes on update philosophy for Windows pre-10 and their impact on existing WSUS implementations.
You may have a outside contractor who comes in once a week or seasonal to do some work in your office but you only want to give him access to the programs and files he needs and keep privet all other documents and programs, can you do this on a loca…
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 additional member functions of the vector class. Specifically, the capacity and swap member functions will be introduced.

739 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