K
KatMagic
I have an asp.net 1.1 application on our internal web server that logs when
a user logs in and records the ipaddress; however, it is returning the
address of the server, not the user's workstation. How would I get the
user's workstation's ip address, if possible. This is what I'm using now
Dim ip as string
Try
Dim strHostName as String = dns.GetHostName
Dim ipEntry as IPHostEntry = dns.GetHostByName(strHostName)
Dim ipAddress as IPAddress() = ipEntry.AddressList
Dim i as Integer = 0
do while i < ipAddress.Length
ip = ip & " " & i & ": " & strHostName & " " &
IpAddress(i).ToString
i = i+1
Loop
Catch ex as Exception
End try
a user logs in and records the ipaddress; however, it is returning the
address of the server, not the user's workstation. How would I get the
user's workstation's ip address, if possible. This is what I'm using now
Dim ip as string
Try
Dim strHostName as String = dns.GetHostName
Dim ipEntry as IPHostEntry = dns.GetHostByName(strHostName)
Dim ipAddress as IPAddress() = ipEntry.AddressList
Dim i as Integer = 0
do while i < ipAddress.Length
ip = ip & " " & i & ": " & strHostName & " " &
IpAddress(i).ToString
i = i+1
Loop
Catch ex as Exception
End try