Sets ip_address to localhost if no network available