removed netifaces dependency and local address lookup