$Web IPAddr: Difference between revisions

From m204wiki
Jump to navigation Jump to search
mNo edit summary
m (add IPV6 address format)
Line 9: Line 9:
<p class="syntax"><span class="term">%string</span> = $Web_IPAddr
<p class="syntax"><span class="term">%string</span> = $Web_IPAddr
</p>
</p>
<var class="term">%string</var> might contain an IP address specified in either:
<ul>
<li>IPV4 standard 32-bit "dotted-decimal" form: for example, <code>198.242.244.97</code>. </li>
<li>IPV6 standard (https://tools.ietf.org/html/rfc5952) 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>


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

Revision as of 22:06, 14 September 2016

IP address of browser

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

$Web_IPAddr takes no arguments and returns a string, or a null string if the thread is not a Janus Web Server thread.

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 (https://tools.ietf.org/html/rfc5952) 128-bit form: for example, 2011:0ab4:15a1::4a0e:0280:5274

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