Class: Airstream::Network

Inherits:
Object
  • Object
show all
Defined in:
lib/airstream/network.rb

Class Method Summary collapse

Class Method Details

.get_local_ipObject


7
8
9
# File 'lib/airstream/network.rb', line 7

def self.get_local_ip
  Socket.ip_address_list.detect{|intf| intf.ipv4_private?}.ip_address
end