I am trying to get the IP address of client machine using C#. I am using the below code to get the IP address :
string IPAddress = HttpContext.Current.Request.UserHostAddress;
But it is giving me the response in encoded format i.e fe80::ed13:dee2:127e:1264%13
How can I get the actual IP address? Any one faced this issue please share some idea.
C#
VB.net
Hope this helps
You may get several ip address, so can split them as-
In my project it's required to get the local PC IP. So i use it Please try the below code
try using this