Answers for "get local ipv4"

1

get local ipv4

hostname = socket.gethostname()
local_ip = socket.gethostbyname(hostname)
Posted by: Guest on April-12-2021

Python Answers by Framework

Browse Popular Code Answers by Language