Skip to content

Get the IP address of the current system

Kavi suja

Kavi suja

Asked May 24, 2013, 9:25 PM EDTSolved
Share
LinkedInX
Hi,
    I want to get the IP address of the current system using asp.net C#.But I'm in trouble with understanding basic idea behind this task.Can you anyone help me to done this task guys....

Help me Guys....
Thanks in advance Guys....

1 Answer

Know the answer? Post it. Somebody with the same question will find it here.

  • Sunny  Sharma
    ✓ Accepted answer0
    Hello Kavi Suja,

    Try this:
    Request.ServerVariables("REMOTE_ADDR")

    OR

    Request.UserHostAddress

    Happy Coding :)


    Please don't forget to accept this as answer if it helps!
    Thanks.
    0
  • 1 short reply
    • Kavi suja
      0
      Thank you Sunny Kumar
      0