find out wifi hostname with ip code example Example: get hostname socket.gethostbyname(socket.gethostname())