An error has occured in the claim providers configured for this site collection

Recently i saw an issue reported by my fellow developer , when he try to add a user its throwing an exception "An error has occured in the claim providers configured for this site collection". The issue is related how central administration site (in this case central admin site but it could be any site) is accessed , he is using IP address to acces the site unfortunately there is no alternate access mapping set with IP address. So sharepoint is not able to find the provider properly.
 
Resolution to the issue  

Configure an alternate access mapping for accessing the site.

  1. Go to Central administration > System Settings >Farm Management
  2. Under Farm Management Section Click on  Configure alternate access mappings
  3. In alternate mapping page select the Correct web application
  4. Click on Add Internal URL
  5. Add the IP address in my case , it could be localhost / Server FQDN, depends on how you acccess the site.