VBcoders Guest



Don't have an account yet? Register
 


Forgot Password?



A very simple way to display the user's current I.P. address using the Winsock control.

by Kevin (5 Submissions)
Category: Internet/HTML
Compatability: VB 6.0
Difficulty: Unknown Difficulty
Originally Published: Tue 1st January 2002
Date Added: Mon 8th February 2021
Rating: (1 Votes)

A very simple way to display the user's current I.P. address using the Winsock control.

Rate A very simple way to display the user's current I.P. address using the Winsock control.



'Name the button "getIP" and name the text box "ipAddress".
'Use other names at will; just change the code below to suit.

'Code for the button
Private Sub getIP_Click()
ipAddress.Text = Winsock1.LocalIP
End Sub

Download this snippet    Add to My Saved Code

A very simple way to display the user's current I.P. address using the Winsock control. Comments

No comments have been posted about A very simple way to display the user's current I.P. address using the Winsock control.. Why not be the first to post a comment about A very simple way to display the user's current I.P. address using the Winsock control..

Post your comment

Subject:
Message:
0/1000 characters