Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Get user IP on intranet
Message
 
To
08/07/2014 10:47:15
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:
01603575
Views:
60
::1 is IP v6 address for localhost - equivalent to 127.0.0.1. If you don't want to get that disable IP v6 on the local machine or ensure you bind to an IP address that doesn't IP v6 bindings.

+++ Rick ---

>>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?
>
>I have some related methods:
>
>
>cIP = oRequest.ServerVariables("REMOTE_ADDR")
>
>    ' Return the computer name
>    Public Function GetComputerName() As String
>        Dim lcComputerName As String = ""
>
>        ' Initialization
>        lcComputerName = System.Environment.MachineName
>
>        Return lcComputerName
>    End Function
>
>
>Note that based on the OS, you might end up with something like ::1 for the IP address when you are running a local Web site.
+++ Rick ---

West Wind Technologies
Maui, Hawaii

west-wind.com/
West Wind Message Board
Rick's Web Log
Markdown Monster
---
Making waves on the Web

Where do you want to surf today?
Previous
Reply
Map
View

Click here to load this message in the networking platform