참조 : https://pypi.python.org/pypi/psutil

>>> import psutil
>>> psutil.net_connections()
[pconn(fd=115, family=, type=, laddr=('10.0.0.1', 48776), raddr=('63.186.135.19', 8080), status='ESTABLISHED', pid=1254),
 pconn(fd=117, family=, type=, laddr=...