Check that the IP is set before adding a new line