Internal or External Reqest

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I have an asp.net application which used by internet and intranet in the same
time. I can get the IP Address from Request Object. How can I know the
request come from Internet or Intranet?

Thanks.
 
Compare that value to internal known values (i.e. subnet mask), or check out
UserHostName instead.
 
My application will be used by other companies, there is no way to know their
subnet mask in advance. Is there other way?
 
There might be a lower-level way that's beyond me, but I don't know how you
can get away in this case from some sort of "company configuration" option
(e.g. in database, web.config, etc.) that tells you which users are
"friends", either by domain name, ip address, login roles, etc. Good luck.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top