Oracle iPlanet Web Proxy Server 4.0.14 Administration Guide

myIpAddress()()

The myIpAddress()() function is useful when the JavaScript function has to behave differently depending on the host on which the browser is running. This function returns the IP address of the computer that is running the browser.

Return Value

dotted quad IP address as a string value

Example:

The following example returns the string 198.95.249.79 if you are running Navigator on the computer home.example.com.

myIpAddress()