import socket local_ip = socket.gethostbyname(socket.gethostname) print(f"[+] Your Local IP is : {local_ip}")