I'm after the code/page in ASP.NET/ASP for a page which get the visiting users IP and if it falls within one IP range the user is redirected to a URL, if it falls outside of this IP range then the user is forwarded to a different URL.
Get Users IP
Is the Users IP in the range e.g. 192.168.0.1 - 192.168.0.32 (or by subnet)
If yes, redirect to http://server1.domain.com
redirect to http://server2.domain.com
Any help with this will be appreciated, i'm useless at programming and need all the help i can get ASAP.