how to find the host name of the system code example Example: get hostname socket.gethostbyname(socket.gethostname())