Solved

window command to clear a network port in use

Posted on 2009-07-07
4
5,375 Views
Last Modified: 2013-12-04
Is there any windows script/command used to clear a network port in use?
For example,  how to clear a port "1099"  if it is in listening state on windows xp system?
0
Comment
Question by:JOEANEMAV
[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
  • 3
4 Comments
 
LVL 47

Accepted Solution

by:
Donald Stewart earned 400 total points
ID: 24797518
From here
http://wiki.answers.com/Q/What_is_the_Dos_command_to_close_an_open_port
 
1)Type

netstat -a -o -n

in command prompt.

2) find the PID number for that port number
3) goto task manager and end process the corresponding PID number.  
0
 
LVL 9

Assisted Solution

by:PC_Rob
PC_Rob earned 100 total points
ID: 24797553
You can use netstat -b at the command line to show the executable that is using the port in question.

Once you know what is using it, you can stop that program top clear the port.

Regards,

Rob
0
 
LVL 47

Assisted Solution

by:Donald Stewart
Donald Stewart earned 400 total points
ID: 24797608
I also like to use this great utility to both view and close open ports
 
 
Currports
http://nirsoft.net/utils/cports.html 
0
 
LVL 47

Expert Comment

by:Donald Stewart
ID: 24806896
"B" ????
what possible more info is needed?? It was a clear and concise answer.
0

Featured Post

MS Dynamics Made Instantly Simpler

Make Your Microsoft Dynamics Investment Count  & Drastically Decrease Training Time by Providing Intuitive Step-By-Step WalkThru Tutorials.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
configuring snmp v2 or v3 on Cisco switches 2 73
Read-only SNMP string example ? 7 126
C# LINQ ForEach() question 6 115
Ip scheme change 1 31
Is your computer hacked? learn how to detect and delete malware in your PC
Join Greg Farro and Ethan Banks from Packet Pushers (http://packetpushers.net/podcast/podcasts/pq-show-93-smart-network-monitoring-paessler-sponsored/) and Greg Ross from Paessler (https://www.paessler.com/prtg) for a discussion about smart network …
Here's a very brief overview of the methods PRTG Network Monitor (https://www.paessler.com/prtg) offers for monitoring bandwidth, to help you decide which methods you´d like to investigate in more detail.  The methods are covered in more detail in o…
This video gives you a great overview about bandwidth monitoring with SNMP and WMI with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're looking for how to monitor bandwidth using netflow or packet s…

734 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