Answers for "what is ip for my localhost ?"

2

get local ip

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