Fixed the way to get the client IP