1 Antwort
- Neueste
- Die meisten Stimmen
- Die meisten Kommentare
0
Hi,
Python psutil package will allow you to list open tcp connections via psutil. net_connections()
See https://psutil.readthedocs.io/en/latest/ for all details.
You then be able to close them.
Some sample code to do that at https://stackoverflow.com/questions/58161929/can-i-close-connection-established-by-different-process
Best,
Didier
Relevanter Inhalt
- AWS OFFICIALAktualisiert vor 2 Jahren
- AWS OFFICIALAktualisiert vor 3 Jahren
- AWS OFFICIALAktualisiert vor 2 Jahren
- AWS OFFICIALAktualisiert vor 2 Jahren