I am connecting to SharePoint via managed client api. ClientContext connects to the site and access the list data when I specify the site address as http://computer_name but when I give the configured alternate access mapping like http://demo.somedomain.com, I end up with 401 Unauthorized exception.
Both computer name and alternate mapping works without problems when I use the browser to access the site.
PS: I am trying to access the site over the internet.
Any help is appreciated.