Rescue invalid ip address exceptions on assign.

In order that set attribute should not be bang method