In Python 2.7 is there a way to get information on all open sockets similar to what netstat/ss does in linux?
I am interested in writing a small program (similar to EtherApe) that tracks when my computer opens a connection to a server.
Sockets are handled and controlled by OS. Any programming language what do is just put the data to buffer in OS. So in order to check the open sockets you just have to read them by operating system.
Show all open sockets in Python