Skip to content

Instantly share code, notes, and snippets.

@dinnouti
Created December 9, 2019 17:58
Show Gist options
  • Save dinnouti/8bb65fa264d8d67f4f7896d66c577a09 to your computer and use it in GitHub Desktop.
Save dinnouti/8bb65fa264d8d67f4f7896d66c577a09 to your computer and use it in GitHub Desktop.
Show IP address in Jupyter notebook
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