Created
September 22, 2016 02:53
-
-
Save border/2d58f4111699eac54a5743e69c85b314 to your computer and use it in GitHub Desktop.
get local ip
This file contains hidden or 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 | |
socket.gethostbyname(socket.gethostname()) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment