$RequesterAddress

$RequesterAddress

gives the IP address originating an HTTP request that initiated the current evaluation.

Details

  • If the current evaluation was not initiated by an HTTP request, $RequesterAddress is None.
  • $RequesterAddress is set not only for direct web calls, such as those through an API, but also for interactive sessions that occur in the Wolfram Cloud Platform.

Examples

Basic Examples  (1)

Deploy an API function that returns the requester address:

In[1]:=
Click for copyable input
Out[1]=

Get the address that originated this request:

In[2]:=
Click for copyable input
Out[2]=

See Also

$MachineAddresses  FindGeoLocation  $UserAgentString  EvaluationData  CloudLoggingData

Introduced in 2014
(10.0)