When youโre using Cloudflare or any similar reverse proxy service, your server typically receives the proxy serverโs IP instead of the actual IP of your visitors. To solve this, xCloud allows you to restore the real IP address through specific configurations based on your server type. Follow the steps below whether you are using OpenLiteSpeed (OLS) or NGINX, you can show visitors real IP address of your websites with xCloud.
For NGINX Servers #
If your site is hosted on an NGINX server, you will need to configure it manually to see the real IP addresses of your visitors. xCloud offers two ways to do this โ one for i) Individual sites and ii) Another for all sites on the server.
Method 1: Configure Real IP for a Single Website #
To enable real IP detection for a specific website, log in to your xCloud dashboard and navigate to the site you want to configure. Once there, go to the โToolsโ menu and select the โNGINX Customizationโ option.

Click on the Add New NGINX button to open a configuration popup. In the popup, look for the Select Template dropdown and choose the option โShow Real IP โ Cloudflare proxiedโ. Next, move to the โConfig File Nameโ field and enter a filename of your choice.

Then, in the โConfig File Nameโ field, input the necessary configuration rules (you can use the ones provided in the default template or add your own). After filling in the required fields, click the โSave Configโ button to apply the changes. This method only affects the selected website.
Note: We gave the necessary config, in the Config Content field, You can adjust it if needed.


Method 2: Configure Real IP for All Websites #
If you prefer to apply real IP configuration globally for all websites hosted on your server, xCloud makes that possible using custom server commands. To get started, go to your โServerโ โ โManagementโ section from the navigation bar. Then click on the โCommandsโ option from the menu.

Inside the Commands page, select the โRun Custom Commandโ option. A popup window will appear. In the popup, locate the โCommandโ field and enter the following bash script. This script creates a configuration file at /etc/nginx/conf.d/show-real-ips-cf-proxied.conf, adds Cloudflareโs IP ranges, sets the correct real IP header, and reloads the NGINX server.
After pasting the script, click on the โRun Commandโ button. This will apply the Real IP configuration globally to all your hosted websites, ensuring accurate IP logging across your entire NGINX environment.

For OpenLiteSpeed Servers #
If your website is hosted on an OpenLiteSpeed (OLS) server, thereโs no additional configuration needed. xCloud handles real IP restoration by default on OLS, so you donโt have to take any action. The real visitor IPs will automatically appear in your logs and analytics.
โญIf you are using Cloudflare, xCloud plans to automate this setup in the future. Once that update is released, you wonโt need to configure this manually when Cloudflare is detected.
It is important to show visitor real IP addresses for accurate logging, analytics, and implementing security measures like rate limiting or geo-blocking. Once configured properly, your server will start capturing and logging the actual IPs of your visitors, ensuring full visibility and control over your traffic.
Still stuck? Contact our support team for any of your queries.




































































