Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

how to get local ip in python

import socket
local_ip = socket.gethostbyname(socket.gethostname)
print(f"[+] Your Local IP is : {local_ip}")
 
PREVIOUS NEXT
Tagged: #local #ip #python
ADD COMMENT
Topic
Name
6+2 =