Client IP Address

Since OctaGate Switch acts as an intermediate, the web server will not report the correct IP address of the client - it will always report the IP address of the OctaGate Switch server. However, OctaGate stores the IP address of the caller in a custom server variable called "OGCallerIP".

Note that if you're using ASP pages, you must refer to the header as "HTTP_OGCALLERIP".

All OctaGate Switch Specific Headers

OctaGate Switch adds three headers, these are;
Server VariableDescription
OGCALLERIPThe IP of the actual client making the request.
OGORIGURLSince OctaGate Switch can perform URL rewriting, it can sometimes be useful to keep track of the actual URL that the user requested.
OGHOPCOUNTAn internal header that OctaGate Switch uses to prevent users from creating circular references between domains.

Current Header Values

 

These are the results that OctaGate Switch have created for this session;
Server VariableValue
Request.ServerVariables("HTTP_OGCALLERIP")38.103.63.17
Request.ServerVariables("HTTP_OGORIGURL")www.octagate.com 80 /ogcallerip.asp
Request.ServerVariables("HTTP_OGHOPCOUNT")1

All Server Variables

Here's a list of all server variables that have been reported to this asp session;

Server Variable Value
ALL_HTTP HTTP_CACHE_CONTROL:no-cache HTTP_CONNECTION:close HTTP_PRAGMA:no-cache HTTP_VIA:1.1 OctaGate:80 HTTP_ACCEPT:Accept: application/xhtml+xml,text/html;q=0.9,text/plain; HTTP_ACCEPT_CHARSET:ISO-8859-1,utf-8;q=0.7,*;q=0.7 HTTP_ACCEPT_ENCODING:gzip HTTP_ACCEPT_LANGUAGE:en-us,en;q=0.5 HTTP_HOST:www.octagate.com HTTP_USER_AGENT:CCBot/1.0 (+http://www.commoncrawl.org/bot.html) OG/2.2.28 (IP=38.103.63.17) HTTP_OGCALLERIP:38.103.63.17 HTTP_OGORIGURL:www.octagate.com 80 /ogcallerip.asp HTTP_OGHOPCOUNT:1
ALL_RAW Cache-Control: no-cache Connection: close Pragma: no-cache Via: 1.1 OctaGate:80 Accept: Accept: application/xhtml+xml,text/html;q=0.9,text/plain; Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7 Accept-Encoding: gzip Accept-Language: en-us,en;q=0.5 Host: www.octagate.com User-Agent: CCBot/1.0 (+http://www.commoncrawl.org/bot.html) OG/2.2.28 (IP=38.103.63.17) OGCallerIP: 38.103.63.17 OGOrigURL: www.octagate.com 80 /ogcallerip.asp OGHopCount: 1
APPL_MD_PATH /LM/W3SVC/1743727302/Root
APPL_PHYSICAL_PATH C:\WebSites\OctaGate\
AUTH_PASSWORD
AUTH_TYPE
AUTH_USER
CERT_COOKIE
CERT_FLAGS
CERT_ISSUER
CERT_KEYSIZE
CERT_SECRETKEYSIZE
CERT_SERIALNUMBER
CERT_SERVER_ISSUER
CERT_SERVER_SUBJECT
CERT_SUBJECT
CONTENT_LENGTH 0
CONTENT_TYPE
GATEWAY_INTERFACE CGI/1.1
HTTPS off
HTTPS_KEYSIZE
HTTPS_SECRETKEYSIZE
HTTPS_SERVER_ISSUER
HTTPS_SERVER_SUBJECT
INSTANCE_ID 1743727302
INSTANCE_META_PATH /LM/W3SVC/1743727302
LOCAL_ADDR 192.168.0.2
LOGON_USER
PATH_INFO /ogcallerip.asp
PATH_TRANSLATED C:\WebSites\OctaGate\ogcallerip.asp
QUERY_STRING
REMOTE_ADDR 192.168.0.2
REMOTE_HOST 192.168.0.2
REMOTE_USER
REQUEST_METHOD GET
SCRIPT_NAME /ogcallerip.asp
SERVER_NAME www.octagate.com
SERVER_PORT 1066
SERVER_PORT_SECURE 0
SERVER_PROTOCOL HTTP/1.1
SERVER_SOFTWARE Microsoft-IIS/6.0
URL /ogcallerip.asp
HTTP_CACHE_CONTROL no-cache
HTTP_CONNECTION close
HTTP_PRAGMA no-cache
HTTP_VIA 1.1 OctaGate:80
HTTP_ACCEPT Accept: application/xhtml+xml,text/html;q=0.9,text/plain;
HTTP_ACCEPT_CHARSET ISO-8859-1,utf-8;q=0.7,*;q=0.7
HTTP_ACCEPT_ENCODING gzip
HTTP_ACCEPT_LANGUAGE en-us,en;q=0.5
HTTP_HOST www.octagate.com
HTTP_USER_AGENT CCBot/1.0 (+http://www.commoncrawl.org/bot.html) OG/2.2.28 (IP=38.103.63.17)
HTTP_OGCALLERIP 38.103.63.17
HTTP_OGORIGURL www.octagate.com 80 /ogcallerip.asp
HTTP_OGHOPCOUNT 1

This code from http://www.4guysfromrolla.com/, specifically http://www.4guysfromrolla.com/webtech/092298-3.shtml.
<TABLE>
      <TR>
           <TD>
                <B>Server Varriable</B>
           </TD>
           <TD>
                <B>Value</B>
           </TD>
      </TR>

      <% For Each name In Request.ServerVariables %>
      <TR>
           <TD>
                <%= name %>
           </TD>
           <TD>
                <%= Request.ServerVariables(name) %>
           </TD>
      </TR>
      <% Next %>
</TABLE>