Sha256: a1c067cb89d5d5db99e42d35381882fcf3184e99fc5f7e814b4068b9f63046e4
Contents?: true
Size: 167 Bytes
Versions: 3
Compression:
Stored size: 167 Bytes
Contents
require 'socket' module ServerHere IP = Socket.ip_address_list.select do |ad| ad.ipv4? && ad.getnameinfo[0] != 'localhost' end.first.ip_address end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
server_here-0.1.2 | lib/server_here/ip.rb |
server_here-0.1.1 | lib/server_here/ip.rb |
server_here-0.1.0 | lib/server_here/ip.rb |