print the machine name and ipv4 address code example Example: get hostname socket.gethostbyname(socket.gethostname())