4
Reply

How to get a client system IP address

Kanakaraj V

Kanakaraj V

Sep 18, 2010
10.7k
0

    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;

        }

    Gangadhar Vennapu
    October 11, 2010
    0

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

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

    Dhiraj Kumar
    October 04, 2010
    0

    Request.UserHostAddress

    Dhiraj Kumar
    October 04, 2010
    0

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

    2) For Ip Address --  Request.UserHostAddress

     

     

    Goud

     

    Pompana Goud
    October 04, 2010
    0