Solved

window command to clear a network port in use

Posted on 2009-07-07
4
4,742 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:
dstewartjr earned 400 total points
Comment Utility
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
Comment Utility
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:dstewartjr
dstewartjr earned 400 total points
Comment Utility
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:dstewartjr
Comment Utility
"B" ????
what possible more info is needed?? It was a clear and concise answer.
0

Featured Post

What Security Threats Are You Missing?

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

Join & Write a Comment

Suggested Solutions

A theme is a collection of property settings that allow you to define the look of pages and controls, and then apply the look consistently across pages in an application. Themes can be made up of a set of elements: skins, style sheets, images, and o…
Is your computer hacked? learn how to detect and delete malware in your PC
This is Part 3 in a 3-part series on Experts Exchange to discuss error handling in VBA code written for Excel. Part 1 of this series discussed basic error handling code using VBA. http://www.experts-exchange.com/videos/1478/Excel-Error-Handlin…
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.

743 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