Server Variables

Development Team Montego Data Limited 
This article () shows Server Information.

  
ALL_HTTPHTTP_CONNECTION:Keep-Alive HTTP_ACCEPT:text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8 HTTP_ACCEPT_ENCODING:br,gzip HTTP_ACCEPT_LANGUAGE:en-US,en;q=0.5 HTTP_HOST:montegodata.co.uk HTTP_IF_MODIFIED_SINCE:Tue, 07 Jul 2020 03:53:42 GMT HTTP_USER_AGENT:CCBot/2.0 (https://commoncrawl.org/faq/)
ALL_RAWConnection: Keep-Alive Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8 Accept-Encoding: br,gzip Accept-Language: en-US,en;q=0.5 Host: montegodata.co.uk If-Modified-Since: Tue, 07 Jul 2020 03:53:42 GMT User-Agent: CCBot/2.0 (https://commoncrawl.org/faq/)
APPL_MD_PATH/LM/W3SVC/273/ROOT
APPL_PHYSICAL_PATHD:\Inetpub\vhosts\montegodata.co.uk\httpdocs\
CONTENT_LENGTH0
GATEWAY_INTERFACECGI/1.1
HTTPSoff
INSTANCE_ID273
INSTANCE_META_PATH/LM/W3SVC/273
LOCAL_ADDR5.77.32.136
PATH_INFO/WebForms/Site.aspx
PATH_TRANSLATEDD:\Inetpub\vhosts\montegodata.co.uk\httpdocs\WebForms\Site.aspx
REMOTE_ADDR75.101.220.230
REMOTE_HOST75.101.220.230
REMOTE_PORT60986
REQUEST_METHODGET
SCRIPT_NAME/WebForms/Site.aspx
SERVER_NAMEmontegodata.co.uk
SERVER_PORT80
SERVER_PORT_SECURE0
SERVER_PROTOCOLHTTP/1.1
SERVER_SOFTWAREMicrosoft-IIS/10.0
URL/WebForms/Site.aspx
HTTP_CONNECTIONKeep-Alive
HTTP_ACCEPTtext/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
HTTP_ACCEPT_ENCODINGbr,gzip
HTTP_ACCEPT_LANGUAGEen-US,en;q=0.5
HTTP_HOSTmontegodata.co.uk
HTTP_IF_MODIFIED_SINCETue, 07 Jul 2020 03:53:42 GMT
HTTP_USER_AGENTCCBot/2.0 (https://commoncrawl.org/faq/)
HTTP_X_REWRITE_URL/WebForms/Site.aspx
HTTP_X_ORIGINAL_URL/WebForms/Site.aspx
UserHostAddress75.101.220.230

Server Variables

<table border="1">
<%
IEnumerator en = Request.ServerVariables.Keys.GetEnumerator();
en.MoveNext();
foreach( string key in Request.ServerVariables.Keys)
{
    if (Request.ServerVariables[key].Trim().Length > 0)
    {
        Response.Write( string.Format("<tr><td><b>{0}</b></td><td>{1}</td></tr>",
                        key, Request.ServerVariables[key]));
    }
}
%>
</table>

<table border="1">
<%
for each name in Request.ServerVariables
    if len(trim( Request.ServerVariables(name) )) > 0 then
        Response.write( "<tr><td><b>"&name&":</b></td><td>" )
        Response.write( Request.ServerVariables(name) )
        Response.write( "</td></tr>" )
    end if
next
%>
</table>

<h3>Client side IP geolocation using <a href="http://ipinfo.io">ipinfo.io</a></h3>

<hr/>
<div id="ip"></div>
<div id="address"></div>
<hr/>Full response: <pre id="details"></pre>

$.get("http://ipinfo.io", function (response) {
    $("#ip").html("IP: " + response.ip);
    $("#address").html("Location: " + response.city + ", " + response.region);
    $("#details").html(JSON.stringify(response, null, 4));
}, "jsonp");


In this asp based site simply iterating through ServerVariables reveals this information.
The aspx sample requires the IEnumerator workaround code as an error happens without it.
Wilmott Online Technical Forum For Derivative Experts