I want to use C#/ASP.net to find out whether the user browsing the website is on the same network so that certain links are only displayed while in the office (to those who have access to them).
Anyone accessing from within the office will be doing so by going to it's local IP address (i.e. 192.168.x.x) whereas external users will be browsing to the public domain name.
All I need is some way to differentiate between the two types of user.Answer1:
Take a look @ Request.Url.Host - you'll be able to pluck the address from this.