fir-gen / app /ip.py
aniudupa's picture
Upload 30 files
63310f4 verified
raw
history blame contribute delete
141 Bytes
import socket
hostname = socket.gethostname() # Get the local machine name
print(socket.gethostbyname(hostname)) # Get the local IP address