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?