Skip to content

Instantly share code, notes, and snippets.

@mkeen
Created April 10, 2015 16:42
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 mkeen/d54b6f2662d17aa59ee9 to your computer and use it in GitHub Desktop.
Save mkeen/d54b6f2662d17aa59ee9 to your computer and use it in GitHub Desktop.
Socket.ip_address_list.detect(&:ipv4_private?).try(:ip_address)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment