Answers for "get computer ip with python"

1

how to get local ip in python

import socket
local_ip = socket.gethostbyname(socket.gethostname)
print(f"[+] Your Local IP is : {local_ip}")
Posted by: Guest on May-28-2021
0

how to get local ip in python

import socket
local_ip = socket.gethostbyname(socket.gethostname())
print(f"[+] Your Local IP is : {local_ip}")
Posted by: Guest on May-28-2021

Code answers related to "get computer ip with python"

Python Answers by Framework

Browse Popular Code Answers by Language