Added function get_client_ip