how to find my host name in python sokets code example Example: get hostname socket socket.gethostbyname(socket.gethostname())