Set a default Ip address
Litlle refactoring