You are here : python_3socketsocketgethostname

socket.gethostname() - socket

Return a string containing the hostname of the machine where  the Python
interpreter is currently executing.


Syntax

socket.gethostname()


Example


Output / Return Value


Limitations


Alternatives / See Also


Reference