In [1]:
import socket
In [3]:
hostname = socket.gethostname()
In [4]:
socket.gethostbyname(hostname)
Out[4]:
In [7]:
[m for m in dir(socket) if "host" in m]
Out[7]:
In [ ]:
import socket
hostname = socket.gethostname()
socket.gethostbyname(hostname)
[m for m in dir(socket) if "host" in m]