ip address and date from client needed...

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)
 
H

Herfried K. Wagner [MVP]

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'.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top