I'm writing a port collision checking function. I need to determine:
My idea was to run a QProcess executing the native command netstat -abno and parsing the output. But the parameter -b requires elevated rights (UAC) and i don't want to bug users with an UAC prompt.
Is there a Qt lib out there providing such functionality? How would you implement this?
you can use Tcpvcon.exe which is part of TCPView
TCPView Needs admin rights, tcpvcon does not
use with -an or -acn
you can even specify the application to check afterwards: e.g. Tcpvcon.exe -an Skype
originally found by Dane some time ago:
Use TCPView if you want a GUI for this. It's the old Sysinternals app that Microsoft bought out
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With