C# Corner
Tech
News
Videos
Forums
Trainings
Books
Events
More
Interviews
Jobs
Live
Learn
Career
Members
Blogs
Challenges
Certifications
Bounties
Contribute
Article
Blog
Video
Ebook
Interview Question
Collapse
Feed
Dashboard
Wallet
Learn
Achievements
Network
Refer
Rewards
SharpGPT
Premium
Contribute
Article
Blog
Video
Ebook
Interview Question
Register
Login
Get the IP Address of Current User in C#
WhatsApp
Mukesh Kumar
Nov 23
2015
1.5
k
0
0
public
string
GetSystemIPAddress()
{
return
HttpContext.Current.Request.ServerVariables[
"HTTP_X_FORWARDED_FOR"
] ? ? HttpContext.Current.Request.ServerVariables[
"REMOTE_ADDR"
];
}
C#
IP Address
Up Next
Get the IP Address of Current User in C#