Skip to main content
All CollectionsWorking with Cloud Code
Showing the Caller’s IP Address for S2S Scripts
Showing the Caller’s IP Address for S2S Scripts

Retrieving the Caller’s Incoming IP When Executing an S2S Script

Jason Liang avatar
Written by Jason Liang
Updated over a month ago

For the S2S scripts, if you need additional context, such as the caller's incomingIp, along with the script data, you can request the brainCloud support team to enable this feature for your app. Once enabled, an additional field called _context will appear in the script data map.

For example:

"receivedInCCdata": { 
"parm1": "value1",
"parm2": "value2",
"_context": {
"incomingIp": "176.112.76.185"
}
}

This information can be valuable for tracking and monitoring your script's usage.

Did this answer your question?