If you want to access a SharePoint site remotely be it WSS, 2007 or 2010 by using the IP address then you will need to configure the Alternate Access Mappings correctly.
This caught me out today when trying to access a SharePoint 2010 site remotely, each time I went to ‘Site Settings’ or to upload a document using the ‘Add document’ link the site bombed out with an error (I would add a screenshot but I’ve fixed it now and don’t want to break it again!).
The error was because it was looking for the pages by hostname e.g. in the case of adding a document it was looking for – http://myserver/site1/_layouts/Upload.aspx instead of – http://192.168.1.109/site1/_layouts/Upload.aspx.
To fix the problem you need to go to the Alternate Access Mappings page in Central Admin, once there follow the below steps:
1. Add a new internal URL by clicking the ‘Add Internal URLs’ option – enter the IP address that you are using to access the site e.g. http://192.168.1.109
2. Click ‘Edit Public URLs’ and set the Default to be the IP address (I’m not 100% sure if this step is necessary but without this I still had errors trying to locate pages by IP address).
I was worried that this would break it when trying to access sites using the hostname but this still seems to work fine after making the change.
Please let me know if the above isn’t correct and I should be doing this differently.