How to disconnect from socket after connecting using socket.socket.connect_ex?
I was following the instructions from this answer on how to check network ports in python: /a/19196218/8652920
is it necessary to close socket when using socket.gethostname
I am using in my python scripts the following in order to find the host name