Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public class ClassName {
- private static string ipAddress;
- static {
- ipAddress = ApexPages.currentPage().getHeaders().get('X-Salesforce-SIP');
- }
- @RemoteAction
- public static String userDetails() {
- showIpAddress();
- }
- public static void showIpAddress(){
- system.debug('ipAddress ' + ipAddress );
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement