Adds check if default ip address is correct format.

Closes #6234