Kanakaraj V
How to get a client system IP address
By Kanakaraj V in ASP.NET on Sep 18 2010
  • Gangadhar Vennapu
    Oct, 2010 11

    HI,
    please use the below function to get the client ip address.
    private string IppAddress()
        {

            string strIpAddress;

            strIpAddress = Request.ServerVariables["HTTP_X_FORWARDED_FOR"];

            if (strIpAddress == null)

                strIpAddress = Request.ServerVariables["REMOTE_ADDR"];

            return strIpAddress;

        }

    • 0
  • Dhiraj Kumar
    Oct, 2010 4

    1) use the System.DateTime.DaysInMonth() method to find the same

    2) DateTime.DaysInMonth(2010,10).ToString();

    • 0
  • Dhiraj Kumar
    Oct, 2010 4

    Request.UserHostAddress

    • 0
  • Pompana Goud
    Oct, 2010 4

    1) Opend Url  --- Request.Url.AbsoluteUri,

    2) For Ip Address --  Request.UserHostAddress

     

     

    Goud

     

    • 0


Most Popular Job Functions


MOST LIKED QUESTIONS