You are here : python_3socketsocketsethostname

socket.sethostname() - socket

Set the machine’s hostname to name.  This will raise an
OSError if you don’t have enough rights.


Syntax

socket.sethostname(name)


Example


Output / Return Value


Limitations


Alternatives / See Also


Reference