Basic getaddrinfo() basic example : IP Address : Network PYTHON TUTORIALS


PYTHON TUTORIALS » Network » IP Address »

 

Basic getaddrinfo() basic example


import sys, socket

result = socket.getaddrinfo(sys.argv[1], None)
print result[0][4]



Leave a Comment / Note


 
Verification is used to prevent unwanted posts (spam). .


PYTHON TUTORIALS

 Navioo Network
» IP Address