How to extract IP from the client?