title: Obtain IP Address of the User of an IFrame
body: <p>I am hosting several IFrames on a 3rd party web site. The 3rd party site is the middle man to allow user access to a web site that is primarily for internal use by another company.</p>
  <p>What I would like to do is verify the user's IP Address against a range of valid IP's for the 3rd party (middle man) web site. If it falls in the range allow the user to access the IFrame, if not - ACCESS DENIED!</p>
  <p>Anyways, there are a ton of examples online to get the Request.UserHostAddress, but this brings back my IP Address.</p>
  <p>My question is: how do I get the user's IP Address whom is accessing the IFrame to assure the request is coming from the 3rd party site?</p>
  <p>So far I have tried ServerVariables and UserHostAddress. They both return ::1. I am running the site that hosts the IFrames locally and accessing those through the 3rd party site which is hosted on a server.</p>
  <h2>UPDATE</h2>
  <p>I have finally gotten around to updating everyone. Trying to do this by code is not a viable solution. But, I believe there is a solution for this through authenticating the IP Address with IIS. In code without implementing a very hacky solution we will only be able to obtain the user's IP Address.</p>
  <p>However, by using IIS you can verify the 3rd party's address. This post from SO demonstrates how to do it. The post does not fit my case, but it does show you how to authenticate IP ranges.</p>
  <p><a href="https://stackoverflow.com/questions/3153754/direct-different-ips-to-different-pages-on-iis7">Direct different IP&#39;s to different pages on IIS7</a></p>
  <h2>If I am successful I will specify that this is a solution for my problem.</h2>