Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

how to get the ip address of laptop with python

#firstly import socket
import socket
#it is important to get host name get it
host_name = socket.gethostname()
ip_adress = socket.gethostbyname()
print("Ip address of",hostbyname,"is",ip_adress
 
PREVIOUS NEXT
Tagged: #ip #address #laptop #python
ADD COMMENT
Topic
Name
9+7 =