Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

how to get ip address of pc using python

import socket
hostname = socket.gethostname()
local_ip = socket.gethostbyname(hostname)

print(local_ip)

#it's work
 
PREVIOUS NEXT
Tagged: #ip #address #pc #python
ADD COMMENT
Topic
Name
2+2 =