I have created two test websites in IIS. one is called testapp.com and other is called anothertestapp.com.
In my host files both testapp.com and anothertestapp.com is pointing to 127.0.0.1
both apps are loading perfectly in browser and show their respective contents.
The question however is, how does IIS knows that testapp.com is different than anothertestapp.com. I mean when in browser I type two different domains they both actually are pointing to same IP (127.0.0.1), how does IIS map that to two different websites correctly?