> ## Content Index
> Fetch the complete content index at: https://kudithipudi.org/llms.txt
> Use this file to discover other available public pages before exploring further.

# HOW TO : Trick to find out your IP address from a web server farm
- URL: https://kudithipudi.org/how-to-trick-to-find-out-your-ip-address-from-a-web-server-farm/
- Published: 2011-03-04T16:12:19.000Z
- Updated: 2011-03-04T16:12:19.000Z
- Description: This is a quick trick I came up with to find out the IP address of a client that is trying to access a farm of...
- Author: admin
- Tags: HOWTO, Technology, Uncategorized, Web, #wp, #wp-post, #Import 2026-08-23 02:32

This is a quick trick I came up with to find out the IP address of a client that is trying to access a farm of web servers that you have access to. The diagram below shows the network path for a typical web server.

![](http://farm6.static.flickr.com/5180/5497234532_70d83d5466_d.jpg "Web Server Setup")

You have a client that might be sitting behind a (or multiple) proxy server. And there is a load balancer involved because you have multiple web servers for redundancy.

We were recently working on some rewrite rules for our web servers at work and we needed to find out what IP address the web servers were seeing the client traffic come from. Couple of challenges

- Which web server do you check? The load balancer can send you traffic to any server.
- What IP address are you going to look for? Wait that is the original problem right :).

The web servers usually write an entry to the error log when they serve a [404 error](http://en.wikipedia.org/wiki/HTTP%5F404?ref=kudithipudi.org). So we can use that to figure out which web server you are hitting and what IP address the web server is seeing you as. Here’s the trick

- On the client side go to http://WEBSITE\_ADDRESS/Get\_Me\_My\_IP (or some other URL, which you know doesn’t exist on the web site)
- On the server side, grep for “Get\_Me\_My\_IP” in the web server error logs

Here is an example, I ran on this website (https://kudithipudi.org)

- Client Side : Go to <https://kudithipudi.org/what%5Fis%5Fmy%5Fip>
- Server Side : grep for “what\_is\_my\_ip”

\[bash\]  
root@samurai:/var/log/apache2# grep -i what\_is\_my\_ip access\_kudithipudi.log  
199.27.130.105 – – \[04/Mar/2011:16:07:18 +0000\] "GET /what\_is\_my\_ip HTTP/1.0" 40 4 5495 "-" "Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.2.14) Gecko/2 0110218 Firefox/3.6.14 ( .NET CLR 3.5.30729; .NET4.0E)"  
\[/bash\]

- From this entry I can figure out that my client is appearing as “199.27.130.105” to the web server.