Difference between revisions of "GETREMOTEADDR()"
From Lianjapedia
Yvonne.milne (Talk | contribs) m (1 revision) |
Yvonne.milne (Talk | contribs) |
||
Line 1: | Line 1: | ||
==Purpose== | ==Purpose== | ||
− | Function to return the IP address of the client that is connected to the Recital | + | Function to return the IP address of the client that is connected to the Recital Server |
− | + | ||
==Syntax== | ==Syntax== | ||
GETREMOTEADDR() | GETREMOTEADDR() | ||
− | |||
==See Also== | ==See Also== | ||
− | [[GETLOCALHOST()]], [[GETREMOTEHOST()]], [[GETREMOTEUSER | + | [[GETLOCALHOST()]], [[GETREMOTEHOST()]], [[GETREMOTEUSER()]], [[ISSERVER()]] |
− | + | ||
==Description== | ==Description== | ||
− | The GETREMOTEADDR() function returns the IP address of the client that is connected to the Recital | + | The GETREMOTEADDR() function returns the IP address of the client that is connected to the Recital Server. The address is returned as a character string in 999.999.999.999 format. |
− | + | ||
− | + | ||
+ | An empty string will be returned if the function is not being run via the Recital Server. | ||
==Example== | ==Example== | ||
Line 22: | Line 18: | ||
</code> | </code> | ||
− | |||
− | |||
− | |||
[[Category:Documentation]] | [[Category:Documentation]] | ||
[[Category:Functions]] | [[Category:Functions]] | ||
[[Category:Environment]] | [[Category:Environment]] | ||
[[Category:Environment Functions]] | [[Category:Environment Functions]] |
Revision as of 12:17, 9 February 2012
Contents
Purpose
Function to return the IP address of the client that is connected to the Recital Server
Syntax
GETREMOTEADDR()
See Also
GETLOCALHOST(), GETREMOTEHOST(), GETREMOTEUSER(), ISSERVER()
Description
The GETREMOTEADDR() function returns the IP address of the client that is connected to the Recital Server. The address is returned as a character string in 999.999.999.999 format.
An empty string will be returned if the function is not being run via the Recital Server.
Example
mCurrentIP = getremoteaddr()