Want to become a Vibe Coder? Join Vibe Coding Training here
x
C# Corner
Tech
News
Videos
Forums
Jobs
Books
Events
More
Interviews
Live
Learn
Training
Career
Members
Blogs
Challenges
Certification
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#