Change the way to get the IP address of the client