Search notes:
Python standard library: socket
gethostname
import socket print(socket.gethostname())
Compare with
socket.getfqdn()
and
platform.node
See also
standard library
,
socketserver
Index