Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Get user IP on intranet
Message
From
08/07/2014 11:23:18
 
 
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:
01603318
Views:
44
>As Michel suggests oRequest.ServerVariables("REMOTE_ADDR") is what you need (not sure why he included the other code).

The computer name is also a useful one. When you run in a load balancing environment, where multiple Web servers are responding to the same application, if you look at the Hit table, assuming you have one in your application, it is very useful to know that a specific hit has been handled by a specific IIS server. This is better than logging the IP as it is more readable in that case. The IP of the user, has mentioned, is another usage.
Michel Fournier
Level Extreme Inc.
Designer, architect, owner of the Level Extreme Platform
Subscribe to the site at https://www.levelextreme.com/Home/DataEntry?Activator=55&NoStore=303
Subscription benefits https://www.levelextreme.com/Home/ViewPage?Activator=7&ID=52
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform