Fix ip when no ip in available