Answers for "using socket get ip address of computer windows 10"

1

get ip python

import socket    
host = socket.getfqdn()    
addr = socket.gethostbyname(host)
print(f"Your ip is {addr}")
# On Linux, it may give you the localhost address
Posted by: Guest on November-18-2020

Code answers related to "using socket get ip address of computer windows 10"

Python Answers by Framework

Browse Popular Code Answers by Language