rajath r

rajath r

  • NA
  • 34
  • 106k

To get url and ipaddress of request

Sep 28 2010 2:17 AM
Hi Friends,

I am developing an admanagment system to. Here i have created an asmx file which returns path of image when an request arrives for an ad.

Here i need to get URL and IP address of request which i need to store so as to get number of views.

How can i get request URL. I have tried using "string url = HttpContext.Current.Request.Url.ToString();" but it returns its own url.

For example if esp.xxpsol.com is request url but it will store its own url say adv.xxp.com.

How to do this

Answers (3)