all groups > asp.net > february 2007 >
You're in the

asp.net

group:

Detecting intranet ip's


Detecting intranet ip's MSWindowsProf
2/28/2007 10:28:07 PM
asp.net:
hi,
We are trying to figure out a way of detecting any incoming http request, to
our ASP.NET 2.0 application, if it is coming from our internal network
(intranet) vs from outside of our network(internet). We can get the client
machine's ip from the http request, but is there any way of validating if the
ip is a intranet ip vs. an internet ip? Our intranet is pretty large, spans
over a WAN with multiple subdomains.
Any information/pointer would be highly appreciated.
Re: Detecting intranet ip's Alexey Smirnov
3/1/2007 12:12:12 AM
On Mar 1, 7:28 am, MSWindowsProf
[quoted text, click to view]

The intranet IP number usually starts with 10, or other selected
number.
Re: Detecting intranet ip's Henrik Stidsen
3/1/2007 2:08:57 AM
On 1 Mar., 07:28, MSWindowsProf
[quoted text, click to view]

Someone in your organisation should know which IP classes your
networks are using. I would use a list of IP classes and single IP's
(gateways on remote LAN's and the like) and validate against that
list. You could also use write a class to validate if the remote IP is
one that is reserved for LAN use.
AddThis Social Bookmark Button