Author: Ben Aminnia | Posted on: 8/16/2009 1:42:42 AM | Views : 236


I have an ASP.NET 3.5 website that is published at two different web hosts under different URLs.  For example, on web host1, the URL is www.mysite1.com and on web host 2, the URL is www.mysite2.com.
Inside my code, however, there are functions that need to behave differently depending on whether a user is browsing www.mysite1.com or www.mysite2.com.
How do I identify which site?  For example, is it possible to identify a website's server IP address?
Ben
...

Go to the complete details ...