I manage an intranet for two remote sites - both sites need to have identical file names and folder structures.
I have location A's web server at 192.168.1.10. All of location A is on subnet 192.168.1.x
I have location B's web server at 192.168.2.10. All of location B is on subnet 192.168.2.x
What I would like to do is create a web page with specific information for that site, such as weather and events. I want to detect the ip address of the machine so that the page displays the appropriate code for that site.
so the asp code would grab the ip, and say if the ip matches a sepcific subnet, display the data for that site. Else, display the data for the other site. In very basic terms:
if ip address = 192.168.1.x range then
else if ip address = 192.168.2.x range then