How to get a list of ports that are used on the server from Delphi

I need to deal with the command line result as follows: netstat -aon in Delphi, parse it and find out all the ports that are already in use. Is there a library or component around this?

+3
source share
1 answer

To get this information, you can use these WinAPi functions.

which are in the library Iphlpapi.dll(Windows Api IP Helper).

for delphi translating these functions you can check the block JwaIpHlpApithat is part ofJEDI API Library

+4
source

Source: https://habr.com/ru/post/1768905/


All Articles