Check for local ips with netifaces (should be more robust)

Signed-off-by: Martin Raspaud <martin.raspaud@smhi.se>