Extend client ip address function.