I have done AAM for my SharePoint 2010 site. There is no issue in that.What I am doing is, I have a feature with feature receiver that reads the site url (SPWeb.Url) and store that url in a custom list.Basically assigning navigation url to my site items dynamically that is read from a custom list. Obviously the url read by SPWeb object is the url with AAM. As long as I am on my VM it is able to resolve the url correctly. The problem arises when I try to access my site contents from out side the VM because the navigation url is (AAM). How should I take on this? Anything to change with AAM?
Here is my AAM configuration
In IIS I have added a binding with host name on port 80.
In my Central Admin I have configured my site to use the same host name.
Hope I am clear on the problem.If not please ask.