Querying an http request

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

Guest

Hi,

How do I extract the IP addresss and the MAC address of the sender of an
http request.

Thanks in advance
 
Hello, MMA!

M> How do I extract the IP addresss and the MAC address of the sender of an
M> http request.

It would be more simpler to give you an answer if you'll provide more context to your question.
For example, how do you receive http request? Is it HttpListener or smthe else?

--
Regards, Vadym Stetsyak
www: http://vadmyst.blogspot.com
 
Hi Vadym,

A user makes a request to visit a particular url, but get redirected to my
aspx page because he/she is not authorized to do so. My aspx page needs to
query the IP and Mac Address and verify if the User is authorized to perform
the requested action. I hope this helps.

Thanks in advance
 
Hello, MMA!

M> A user makes a request to visit a particular url, but get redirected to
M> my aspx page because he/she is not authorized to do so. My aspx page
M> needs to query the IP and Mac Address and verify if the User is
M> authorized to perform the requested action. I hope this helps.

To retrieve IP address you can check Page.Request.UserHostAddress.

MAC address can also be obtained however its not that simple.
Take a look at ( http://www.eggheadcafe.com/PrintSearchContent.asp?LINKID=886 )

--
Regards, Vadym Stetsyak
www: http://vadmyst.blogspot.com
 
Back
Top