$Web IPAddr: Difference between revisions

From m204wiki
Jump to navigation Jump to search
m (1 revision)
m (add link)
 
(9 intermediate revisions by 5 users not shown)
Line 1: Line 1:
{{DISPLAYTITLE:$Web_IPAddr}}
{{DISPLAYTITLE:$Web_IPAddr}}
<span class="pageSubtitle"><section begin="desc" />IP address of browser<section end="desc" /></span>
<span class="pageSubtitle">IP address of browser</span>


<var>$Web_IPAddr</var> returns the IP address of the browser issuing the request.


==Syntax==
<p class="syntax"><span class="term">%string</span> = $Web_IPAddr
</p>


$Web_IPAddr returns the dotted IP address of the browser issuing the request.
<var class="term">%string</var> might contain an IP address specified in either:
==Syntax==
<ul>
<p class="syntax"><section begin="syntax" /> %STRING = $Web_IPAddr
<li>IPV4 standard 32-bit "dotted-decimal" form: for example, <code>198.242.244.97</code>. </li>
<section end="syntax" /></p>
 
<li>IPV6 standard ([https://tools.ietf.org/html/rfc5952 RFC 5952]) 128-bit form: for example, <code>2011:0ab4:15a1::4a0e:0280:5274</code>
<p>
The IPV6 form is supported as of version 7.7 of Model&nbsp;204. </p></li>
</ul>


The address format is IPV4 unless the <var>[[TCPTYPE parameter|TCPTYPE]]</var> parameter is explicitly set to an IPV6 value.


$Web_IPAddr takes no arguments and returns a string, or a null string if the thread is not a ''[[Janus Web Server]]'' thread.
<var class="term">%string</var> is a null string if the thread is not a <var class="product">[[Janus Web Server]]</var> thread.


[[Category:Janus Web Server $functions|$Web_IPAddr]]
[[Category:Janus Web Server $functions|$Web_IPAddr]]

Latest revision as of 21:15, 15 September 2016

IP address of browser

$Web_IPAddr returns the IP address of the browser issuing the request.

Syntax

%string = $Web_IPAddr

%string might contain an IP address specified in either:

  • IPV4 standard 32-bit "dotted-decimal" form: for example, 198.242.244.97.
  • IPV6 standard (RFC 5952) 128-bit form: for example, 2011:0ab4:15a1::4a0e:0280:5274

    The IPV6 form is supported as of version 7.7 of Model 204.

The address format is IPV4 unless the TCPTYPE parameter is explicitly set to an IPV6 value.

%string is a null string if the thread is not a Janus Web Server thread.