ip address and date from client needed...

  • Thread starter Thread starter Trint Smith
  • Start date Start date
T

Trint Smith

I need a vb.net way to grab a users ip address, time and date as they
log into a form. Is there an easy way to do that?
thanks,
Trint

.Net programmer
(e-mail address removed)
 
Hello,

Trint Smith said:
I need a vb.net way to grab a users ip address,

\\\
Imports System.Windows.Forms

Public Class Main
Public Shared Sub Main()
Console.WriteLine("IP-Adresse(n) des Computers:")
Dim ip As Net.IPAddress
For Each ip In _
Net.Dns.Resolve( _
SystemInformation.ComputerName _
).AddressList
Console.WriteLine(ip.ToString())
Next ip
Console.ReadLine()
End Sub
End Class
///
time and date as they log into a form.

This can be done by hand. You can get the current time using
'DateTime.Now'.
 
Back
Top