Getting the IP address from a user’s machine in ASP.NET

1142530 pts.
Tags:
ASP.NET
IP address
In ASP.NET, I'm able to get the IP address but it's not the right one. I need the IP address from the user machine (not the user's ISP). Is there a way I can get the real IP address? Is there some sort of IP address check I can use? Thanks!
0

Answer Wiki

Thanks. We'll let you know when a new response is added.
Send me notifications when members answer or reply to this question.

Discuss This Question: 1  Reply

 
There was an error processing your information. Please try again later.
Thanks. We'll let you know when a new response is added.
Send me notifications when members answer or reply to this question.
  • TheRealRaven
    Without knowing what the address is needed for, any advice might be useless. The X-Forwarded-For header is often thought to be most reliable, but it's known not to be guaranteed. See the List of HTTP header fields for all possibilities.

    In short, there is no way to be sure.
    35,060 pointsBadges:
    report

Forgot Password

No problem! Submit your e-mail address below. We'll send you an e-mail containing your password.

Your password has been sent to:

To follow this tag...

There was an error processing your information. Please try again later.

Thanks! We'll email you when relevant content is added and updated.

Following

Share this item with your network: