IP Whitelising not working on localhost

I have been stock with IP whitelisting not working. Please can somebody give a proper assistance?