Skip to content

Instantly share code, notes, and snippets.

@border
Created September 22, 2016 02:53
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save border/2d58f4111699eac54a5743e69c85b314 to your computer and use it in GitHub Desktop.
Save border/2d58f4111699eac54a5743e69c85b314 to your computer and use it in GitHub Desktop.
get local ip
import socket
socket.gethostbyname(socket.gethostname())
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment