function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion

Salesforce Server Ip address using Apex


I am trying to get the Salesforce Server IP Address in apex controller. I am unable to find the solution on how to do this. Can any one of you help me?
There's nothing in Apex to expose this information as far as I'm aware.  The only IP address you can get at is where the request came from.