Better validation that an IP address was retrieved

Now uses a rudimentary regex to match the retrieved newip. This should
prevent it from logging an error message as a new IP address.