Get(HostIPAddress)
Purpose 
Returns the IP address of the host machine for the current database.
Format 
Get(HostIPAddress)
Parameters 
None
Data type returned 
text
Originated in 
FileMaker Pro 8.0
Description 
Returns the IP address used to connect to the host machine for the current database. If the current database isn’t being hosted, an empty string is returned.
Note  In FileMaker WebDirect, returns the physical IP address of the host machine.
If IPv4 and IPv6 addresses are available for remotely hosted files, the address is returned in the most common or default format. This might not be the same format that was used when connecting to the host.
If the current calculation is stored and you specify its context, this function will be evaluated based on that context; otherwise, it will be evaluated based on the context of the current window.
Note  For information on how functions evaluate differently on the host versus the client, search the FileMaker Knowledge Base available at http://help.filemaker.com.
Examples 
Returns one of the following when the current database is being hosted:
 •
IPv4: 14.156.13.121
 •
IPv6: [2001:0DB8:85A3:08D3:1319:8A2E:0370:7334]
Note  If the host machine has both IPv4 and IPv6 addresses, Get(HostIPAddress) returns only the IP address that the client used to connect to the host.
Returns one of the following when accessing a locally hosted database:
 •
127.0.0.1 if connected to 127.0.0.1
 •
[::1] if connected to localhost
 •
14.156.13.121 if connected to the computer’s IP address or evaluated in FileMaker WebDirect.
Related topics 
Functions reference (category list)
Functions reference (alphabetical list)
About formulas
About functions
Defining calculation fields
Using operators in formulas