import platform import socket def get_current_ip(): hostname = socket.gethostname() ip_address = socket.gethostbyname(hostname) return ip_address def get_device_id(): device_id = platform.node() return device_id