Linked Questions
65 questions linked to/from How to get a user's client IP address in ASP.NET?
2
votes
3
answers
13k
views
Get IP address of user computer in C# [duplicate]
Possible Duplicate:
How to get a user's client IP address in ASP.NET?
I have a application in which i have to get IP address of user who accessing my site.
My site is hosted on Go Daddy ...
0
votes
1
answer
4k
views
C# asp.net Get Ipv4 ip address of a client [duplicate]
My below code is getting ivp6 ip address am not sure how to get ipv4 in the same manner.
string ipAddress = "";
if (Dns.GetHostAddresses(Dns.GetHostName()).Length > 0)
{
...
-2
votes
2
answers
3k
views
Get the MAC address and IP Address of a client vists my site [duplicate]
i'm using ASP.NET webforms, and would like to get the ip and MAC address of a
client visiting my site.
Is it possible ?
1
vote
1
answer
2k
views
How to get private IP address of User when User login to my Web Application [duplicate]
I'm trying to get the client's IP address of a User. My code is returning the server's (host) IP address.
string strHostName = System.Net.Dns.GetHostName()
IPHostEntry ipEntry = System.Net.Dns....
0
votes
1
answer
1k
views
Get Client's information like MyDomain\Username in asp.net c# [duplicate]
I tried using the following codes to get my clients info (MyDomain\Username):
HttpContext.Current.Request.ServerVariables["LOGON_USER"];
HttpContext.Current.User.Identity.Name.ToString();
Page.User....
0
votes
0
answers
448
views
Get caller IP Address [duplicate]
I have created an API using ASP.NET Web API. Normally all of my API caller make a portal which invoke my API. Is it possible if I want to get the IP of the caller, and not the portal?
Currently I'm ...
-1
votes
2
answers
202
views
How to track ip adress of a computer performing db operations [duplicate]
I am storing sessions for all those admins who login and logout from my website , also i want to store their ip address , i am using asp.net mvc and c# is language . . .
how do i capture their ip ...
0
votes
0
answers
61
views
ASP.net / VB.net get the ip of a client [duplicate]
I want to see the ip of a client connected to my web site. I'm developing in asp.net + vb.net.
I've added this to my code:
Dim clientIp As String = Request.UserHostAddress
or
Dim clientIp As String ...
0
votes
0
answers
23
views
Get IP of local machine when application is published in IIS [duplicate]
I have a razor web application and it's published in the IIS. The problem is that I need to save the IP of the pc from the users who are login into the app. My method that returns the IP is the ...
434
votes
27
answers
434k
views
How do I get client IP address in ASP.NET Core?
Can you please let me know how to get client IP address in ASP.NET when using MVC 6.
Request.ServerVariables["REMOTE_ADDR"] does not work.
342
votes
7
answers
304k
views
How can I get the client's IP address in ASP.NET MVC?
I'm totally new to the ASP.NET MVC stack, and I was wondering what happened to the simple Page object and the Request ServerVariables object?
Basically, I want to to pull out the client PC's IP ...
147
votes
7
answers
94k
views
Get the IP address of the remote host in ASP.NET Web API
In ASP.NET there is a System.Web.HttpRequest class, which contains ServerVariables property which can provide us the IP address from REMOTE_ADDR property value.
However, I could not find a similar ...
59
votes
6
answers
95k
views
How to Get IP Address?
I want to get the ip address whoever is registering in my site. How to do this in ASPNET. I used the following code, but, it is not getting the proper IP Address
string ipaddress = Request....
29
votes
8
answers
61k
views
How do you get the IP address from a request in ASP.NET?
I have been trying to figure this out but cannot find a reliable way to get a clients IP address when making a request to a page in asp.net that works with all servers.
30
votes
7
answers
57k
views
How to get Client IP address in ASP.NET Core 2.1
I'm working on ASP.Net Core 2.1 with Angular Template provided by Microsoft Visual Studio 2017. My Client App is working fine. After competition of User Authentication, I want to start User Session ...