add method convert ip address to long