September 7, 2005 at 6:18 pm
#189332
Administrator
@NVYE wrote:
Hi,
I’m just wondering, how to get a physical ip address of a computer using Visual Basic.
Thank you very much!
Thanks …
Text1.Text = Winsock1.LocalIP
you dont have to use a text box you can use a label aswell you can put
Text1.Text = Winsock1.LocalIP
under
Private Sub Command1_Click()
Text1.Text = Winsock1.LocalIP
End Sub
or
Private Sub Form_Load()
Text1.Text = Winsock1.LocalIP
End Sub
i included a exsample its downloadable below :