Problem:
In an organization
there was a requirement to access the SharePoint site(s) through IP address.
Accessing
SharePoint like
Solution:
I spent
almost half day to dig out the solution from google, I find lot of blogs
similar to my requirement but none of them work for me.
Here is the
solution that work for my case:
1. Portion for SharePoint
central Administration
1.1 Log on to the
SharePoint central Administration
1.2 Go to Central Administration
> System
Settings > Configure
alternate access mappings as
shown in below screenshot.
1.3 Click on ‘Add
Internal URLs’.
1.4 Select the site
for which we want to map the IP from option ‘Alternate Access Mapping
Collection’
1.5 Provide IP address in
‘URL protocol, host and port’ and select ‘Zone’ from dropdown as per requirement
(for my case I choose Intranet) as shown in below screenshot.
1.6 Finally, it looks
like:
2. Portion for host file
2.1 Go to path C:\Windows\System32\drivers\etc and open the file ‘Hosts’ (It’s good
to take the backup of file before modification)
2.2 Add single entry in the hosts
file as shown in below screenshot(either like A or like B)
2.3 No
need to restart the IIS and it works perfectly for me.




