Linked Questions

2 votes
3 answers
13k views

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 ...
Bhargav Panchal's user avatar
0 votes
1 answer
4k views

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) { ...
Shaik's user avatar
  • 930
-2 votes
2 answers
3k views

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 ?
Adam Bickels's user avatar
1 vote
1 answer
2k views

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....
Vishwa's user avatar
  • 11
0 votes
1 answer
1k views

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....
CodeMeCodeYou's user avatar
0 votes
0 answers
448 views

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 ...
dausdashsan's user avatar
-1 votes
2 answers
202 views

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 ...
ZaraQ's user avatar
  • 57
0 votes
0 answers
61 views

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 ...
Alist3r's user avatar
  • 556
0 votes
0 answers
23 views

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 ...
Andres Espinel's user avatar
434 votes
27 answers
434k views

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.
eadam's user avatar
  • 26.8k
342 votes
7 answers
304k views

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 ...
melaos's user avatar
  • 8,438
147 votes
7 answers
94k views

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 ...
paulius_l's user avatar
  • 5,003
59 votes
6 answers
95k views

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....
Developer404's user avatar
  • 6,022
29 votes
8 answers
61k views

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.
user avatar
30 votes
7 answers
57k views

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 ...
Ahmer Ali Ahsan's user avatar

15 30 50 per page
1
2 3 4 5