[python-win32] how to obtain list of connected IP/port pairs on user's computer?
Tim Golden
mail at timgolden.me.uk
Mon Sep 8 11:01:41 CEST 2008
Patrick Li wrote:
> I'm interested in writing a function that returns me the list of IP/port
> that the user's machine is connected to. The most naive way is to run
> netstat -na on the user's computer and just parse the stdout. Are there
> libraries I can call to achieve this as opposed to running an external
> command?
There was a thread about this a couple of months ago;
might help:
http://mail.python.org/pipermail/python-win32/2008-June/007786.html
TJG
More information about the python-win32
mailing list