Handles IP address errors