Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Get user IP on intranet
Message
 
 
À
08/07/2014 11:15:37
Information générale
Forum:
ASP.NET
Catégorie:
Autre
Versions des environnements
Environment:
VB 9.0
OS:
Windows Server 2012
Network:
Windows 2008 Server
Database:
MS SQL Server
Application:
Web
Divers
Thread ID:
01603311
Message ID:
01603317
Vues:
44
>>Hi,
>>
>>I need to start "tracking" who is doing what in my ASP.NET application (used in Anonymous mode). So I need to get the user IP that loads the application (on Intranet; not Internet). Google search gives many, many approaches. Can someone recommend an approach of getting the IP that worked for you?
>>
>>TIA
>
>As Michel suggests oRequest.ServerVariables("REMOTE_ADDR") is what you need (not sure why he included the other code).
>
>REMOTE_PORT and REMOTE_HOST can also be checked. Full list of server variables here :
>
>http://msdn.microsoft.com/en-gb/library/ms524602(v=vs.90).aspx

Thank you. I also found this list on this URL http://www.w3schools.com/asp/coll_servervariables.asp This should give me what I am looking for; basically I don't care about the exact IP; I just need to see that the same station used the application.
"The creative process is nothing but a series of crises." Isaac Bashevis Singer
"My experience is that as soon as people are old enough to know better, they don't know anything at all." Oscar Wilde
"If a nation values anything more than freedom, it will lose its freedom; and the irony of it is that if it is comfort or money that it values more, it will lose that too." W.Somerset Maugham
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform