Initialize ip if ip_open() fails