Passing real IP to chat application on cpanel server with Litespeed + Cloudflare


We have a cPanel server running litespeed webserver and also uses Cloudflare for DDoS protection. When litespeed is enabled our chat application does not work. When we switch to apache it works fine.

We've already enabled Use Client IP in Header in the Litespeed settings. We've also added all the Cloudflare IP tanges to the trusted IP list.

We need someone that can locate the issue and either make adjustments on the server without disabling litespeed or editing the chat application code to read the IP forwarded from Cloudflare.

I found this additional information which might be helpful:

It occurs when the user's IP cannot be verified.

When creating a user code, IP information of the user identified by the web server where the mini-talk client is installed is included.

This occurs when the IP information is different from the IP of the user accessing the mini-talk server.

The mini-talk server supports IPv4 only, and if the web server supports IPv6, the IP included in the user code may be recorded as IPv6.

If IPv6 is not essential, it can be solved by turning off IPv6 support on the web server and enabling IPv4 support only.

Alternatively, it can also occur if the cloud flare IP or the IP of the L4 equipment is recorded in the user code, not the user's actual IP, on a web server with a mini-talk client installed, such as cloud flare or L4 equipment.

The GetClientIp() function exists in the /classes/[login to view URL] file of the mini-talk client, and please check whether the return value of this function is the user's actual IP.

If an IP other than the user's actual IP is printed, please modify it so that the user's actual IP can be recorded in the user code using a variable that can check the user's actual IP on the web server you use ($_SERVER[HTTP_X_FORWARDED_FOR, etc.).

Skills: Linux, Apache, Web Security, PHP, MySQL

See more: client server chat application netbeans, writing server client chat application, simple client server chat application, client server free chat application, client server chat application aspnet, report flash media server chat application, simple internet client server chat application visual basic, flex text chat application red5 server, real time chat application using php mysql, chat application without server, real time chat application in php, real-time chat application, real-time chat application in node js, real-time chat application in android github, how to make real-time chat application, real time chat application in codeigniter

About the Employer:
( 563 reviews ) Edmond, United States

Project ID: #31634637

Awarded to:


Hello, I'll setup required things on Cpanel and your script so you will get real visitors IP. lets have a chat and get it done right now. Thank you

$25 USD in 1 day
(140 Reviews)

2 freelancers are bidding on average $33 for this job


Hello sir , I could help you in this . Please let me know when you here , thank you .

$40 USD in 1 day
(47 Reviews)