detect http request source

  • Thread starter Thread starter Huseyin Altun
  • Start date Start date
H

Huseyin Altun

Hi,

How can I detect an incoming http request is coming from LAN or internet ?

thanks in advance..
 
How can I detect an incoming http request is coming from LAN or internet ?

In general, you cannot do that, because there's no hard line at which
"LAN" ends and "Internet" begins. You can check the incoming IP and
see if it's on a private network, but a LAN needs not be a private
network.
 
Hi,

How can I detect an incoming http request is coming from LAN or internet ?

thanks in advance..

detect it where?

you basically need to look into the remote IP and then figure out if
it's local or not. Also remember that a LAN can have several network
numbers so it gets even more tricky to decide if it's local or not.

From a web app y ou can use Page.Request.UserHostAddress or
UserHostName
 
Back
Top