Restoring original visitor IP | Web Hosting Talk

Hello guys

I am using Cloudflare as revers proxy and LiteSpeed as web server, I’ve enabled restoring original visitor IP in LiteSpeed console, Now i can see original visitor IP in access log (Raw access in cpanel) but when i run following command it still show cloudflare IPs instead of original IPs


netstat -anp |grep 'tcp|udp"" awk '{print $5}"" cut -d: -f1 | sort | uniq -c | sort -n

How can i check original visitor IPs by command line as live ( I mean while visitors are browsing or sending request to my websites)?