normalize the ip address