socket.gethostname()
Return a string containing the hostname of the machine where the Python interpreter is currently executing.
Note: gethostname()
doesn’t always return the fully qualified domain name; use getfqdn()
for that.
socket.gethostname()
Return a string containing the hostname of the machine where the Python interpreter is currently executing.
Note: gethostname()
doesn’t always return the fully qualified domain name; use getfqdn()
for that.
Designed by : w10schools
service@w10schools.com
Please login to continue.