Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Get user IP on intranet
Message
De
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:
01603315
Vues:
52
>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
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform