Hugging Face
Models
Datasets
Spaces
Community
Docs
Enterprise
Pricing
Log In
Sign Up
Spaces:
aniudupa
/
fir-gen
like
0
Sleeping
App
Files
Files
Community
Fetching metadata from the HF Docker repository...
main
fir-gen
/
app
/
ip.py
aniudupa
Upload 30 files
63310f4
verified
8 months ago
raw
Copy download link
history
blame
contribute
delete
Safe
141 Bytes
import
socket
hostname = socket.gethostname()
# Get the local machine name
print
(socket.gethostbyname(hostname))
# Get the local IP address