Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Get user IP on intranet
Message
From
08/07/2014 11:15:37
 
General information
Forum:
ASP.NET
Category:
Other
Environment versions
Environment:
VB 9.0
OS:
Windows Server 2012
Network:
Windows 2008 Server
Database:
MS SQL Server
Application:
Web
Miscellaneous
Thread ID:
01603311
Message ID:
01603315
Views:
53
>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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform