remove get_non_local_ip from new

Signed-off-by: Alfredo Deza <alfredo.deza@inktank.com>
create a new module for get_nonlocal_ip

Signed-off-by: Alfredo Deza <alfredo.deza@inktank.com>