Answers for "ipv4 and ipv6 localhost"

2

get local ipv4

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

Code answers related to "ipv4 and ipv6 localhost"

Python Answers by Framework

Browse Popular Code Answers by Language