Solved

window command to clear a network port in use

Posted on 2009-07-07
4
4,894 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
  • 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

Zoho SalesIQ

Hassle-free live chat software re-imagined for business growth. 2 users, always free.

Question has a verified solution.

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

Suggested Solutions

A Wildcard Certificate means all of your sub-domains will resolve to the same location, regardless of the non-SSL Document-Root specification. A user will need to purchase a wildcard SSL from a vendor or a reseller that supplies them. Similar to ha…
Entering time in Microsoft Access can be difficult. An input mask often bothers users more than helping them and won't catch all typing errors. This article shows how to create a textbox for 24-hour time input with full validation politely catching …
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.
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…

895 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

14 Experts available now in Live!

Get 1:1 Help Now