changed ip to use Socket.ip_address_list instead of ifconfig

Issue #82