[python-win32] Get listening ports

Tim Golden mail at timgolden.me.uk
Fri Jun 27 18:14:21 CEST 2008


le dahut wrote:
> Hello,
> 
> I'm looking for an API that can do netstat calls to return a list of 
> listenign ports and maybe a process attached to it.

You need the IP Helpers API

http://msdn.microsoft.com/en-us/library/ms886687.aspx

I'm afraid I've never used it, though, so you'll have
to scout around for examples.

TJG


More information about the python-win32 mailing list