Created
December 9, 2019 17:58
-
-
Save dinnouti/8bb65fa264d8d67f4f7896d66c577a09 to your computer and use it in GitHub Desktop.
Show IP address in Jupyter notebook
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import socket | |
print('host name', socket.gethostname()) | |
print('host ip adddress', socket.gethostbyname(socket.gethostname())) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment