Check and see if a port is open and available

Get help with using AutoHotkey (v1.1 and older) and its commands and hotkeys
jadams
Posts: 73
Joined: 13 Mar 2020, 10:48

Check and see if a port is open and available

Post by jadams » 14 Apr 2021, 11:39

Does anyone know how I could check to see if a port is open and available... Not being used by some other application?

swagfag
Posts: 6222
Joined: 11 Jan 2017, 17:59

Re: Check and see if a port is open and available

Post by swagfag » 15 Apr 2021, 07:49

https://www.autohotkey.com/boards/viewtopic.php?t=4372
then parse the collection inspecting .status

jadams
Posts: 73
Joined: 13 Mar 2020, 10:48

Re: Check and see if a port is open and available

Post by jadams » 15 Apr 2021, 08:25

swagfag wrote:
15 Apr 2021, 07:49
https://www.autohotkey.com/boards/viewtopic.php?t=4372
then parse the collection inspecting .status
This looks promising... Unfortunately I am too new to this to know how to use that. I'd be looking to get an array (ideally just a string) of all the ports being used locally. I'd be grateful if you could show me how to get that.

jadams
Posts: 73
Joined: 13 Mar 2020, 10:48

Re: Check and see if a port is open and available

Post by jadams » 15 Apr 2021, 09:47

swagfag wrote:
15 Apr 2021, 07:49
https://www.autohotkey.com/boards/viewtopic.php?t=4372
then parse the collection inspecting .status
I was able to figure it out :-) thank you so much. Just what I was looking for.

Post Reply

Return to “Ask for Help (v1)”