topbanner_forum
  *

avatar image

Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
  • Tuesday April 16, 2024, 10:52 am
  • Proudly celebrating 15+ years online.
  • Donate now to become a lifetime supporting member of the site and get a non-expiring license key for all of our programs.
  • donate

Author Topic: IDEA: Port free-er  (Read 3472 times)

vbmark

  • Participant
  • Joined in 2005
  • *
  • default avatar
  • Posts: 44
    • View Profile
    • Donate to Member
IDEA: Port free-er
« on: September 17, 2012, 07:40 AM »
Hello,

I need a certain port free for an app I use.  However, when booting my PC,  Windows will, on occasion, decide to use the port I want and therefore my app generates errors saying it cannot access the port.

Therefore, what I would like is an app that would, upon execution, kill whatever program is using that port.

The way I currently do it is I launch the command prompt and type "netstat /ano" to see what program has taken the port.  Then I see what the program's PID is.  Then I run Sysinternal's Process Explorer and show the PID column and then kill that program.

I would really like to tell some app, "hey, kill whatever is using port 1080", and save me some step.

Can this be done?

Thanks!
Mark

argv

  • Supporting Member
  • Joined in 2007
  • **
  • Posts: 45
    • View Profile
    • Donate to Member
Re: IDEA: Port free-er
« Reply #1 on: September 17, 2012, 09:34 AM »

You could see the processes and the ports and kill the application directly from TcpView (http://technet.micro...ernals/bb897437.aspx). Probably is not exactly what you want but you will be able to identify and kill the process in fewer steps.

vbmark

  • Participant
  • Joined in 2005
  • *
  • default avatar
  • Posts: 44
    • View Profile
    • Donate to Member
Re: IDEA: Port free-er
« Reply #2 on: September 17, 2012, 10:08 AM »
argv,

Cool tool.  It is faster.  I can use this for now.

Thank you!

skwire

  • Global Moderator
  • Joined in 2005
  • *****
  • Posts: 5,286
    • View Profile
    • Donate to Member
Re: IDEA: Port free-er
« Reply #3 on: September 18, 2012, 04:20 PM »
vbmark, please give this a try:  Porticullis

It's a commandline application and simple to use:  Porticullis.exe <port number>

Please let me know if it works for you.  Thanks.