Skip to content

Instantly share code, notes, and snippets.

@pmachapman
Created May 4, 2018 03:35
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save pmachapman/137e12b6df57460e00e3b8361638cac4 to your computer and use it in GitHub Desktop.
Save pmachapman/137e12b6df57460e00e3b8361638cac4 to your computer and use it in GitHub Desktop.
A simple test script to get what the forwarded IP address is
<% @Page Language="C#" %>
<%
Response.Write("'" + System.Web.HttpContext.Current.Request.ServerVariables["HTTP_X_FORWARDED_FOR"].Split(',')[0] + "'");
%>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment