Salesforce Stack Exchange is a question and answer site for Salesforce administrators, implementation experts, developers and anybody in-between. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

There are 2 parts to my question

Traditionally, while developing and distributing Salesforce mobile apps for beta testing and feedback, I've used the Ray Dehler method for whitelisting all IP addresses - it helps when you do not know the IP of the beta users (IP addresses typically change dynamically for mobile users for a lot of carriers globally).

Ray Dehler package is a small utility (unmanaged package) which basically adds all IP prefixes to the Salesforce whitelist.

enter image description here

A) This method worked great until about Spring or Winter 15 releases and after that, it stopped working. Since then, it does not show the 'Load iFrames' button which is the first step needed to generate the IP prefixes for whitelisting.

Has anyone been able to get this working on their orgs after the Spring/ Winter 15 release?

enter image description here

B) Regardless of A), is there any other script/ mechanism to whitelist all IP combinations you're aware of which does work with latest Salesforce release?

Of course, re-writing this utility can be done in a few hours but I wanted to check if there's anything already available rather than re-inventing the wheel.

share|improve this question
    
Updated here: raydehler.com/cloud/clod/… – Ray Dehler Mar 3 at 6:31
up vote 6 down vote accepted

You can try below code

var startingPoint = 0; 
var endpoint = 0; 

openPage(); 
function openPage() 
{ 
endpoint = startingPoint + 1; 
var win = window.open('https://ap2.salesforce.com/05G/e?IpStartAddress=' + startingPoint + '.0.0.0&IpEndAddress=' + endpoint + '.255.255.255&isdtp=vw',600,600); 
win.onload = function() 
{ 
win.document.getElementsByName('save')[0].click();
win.onunload = function() 
{ 
win.close(); 
startingPoint = startingPoint + 2; 
if(startingPoint <= 255) 
{ 
openPage(); 
} 
} 
} 
}

Special thanks to MVP Ankit Arora (Reference:)

share|improve this answer
    
Thank you - this helps. I made some updates and generalised it for my requirements. – Gaurav Kheterpal Jan 4 at 11:22

I like how it's called the "Ray Dehler" method :)

It works as a Chrome extension now also: http://raydehler.com/cloud/clod/whitelist-all-ips-for-salesforce-chrome-extension.html

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.