Class: Airstream::Network
- Inherits:
-
Object
- Object
- Airstream::Network
- Defined in:
- lib/airstream/network.rb
Class Method Summary collapse
Class Method Details
.get_local_ip ⇒ Object
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 |