Skip to content
Home > Programming > How to get physical ip address > Re: Re: How to get physical ip address

Re: Re: How to get physical ip address

#189332
Admin
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 :