In order that set attribute should not be bang method, rescue invalid ip address exceptions.