VBcoders Guest



Don't have an account yet? Register
 


Forgot Password?



Get Local information with the Winsock Control

by G.J.R. Timmer (1 Submission)
Category: Internet/HTML
Compatability: VB 6.0
Difficulty: Unknown Difficulty
Originally Published: Fri 22nd December 2000
Date Added: Mon 8th February 2021
Rating: (1 Votes)

Get Local information with the Winsock Control

Rate Get Local information with the Winsock Control



'Make a textbox called: "txtLocalHostName"
'Make a textbox called: "txtLocalPort"
'Make a winsock control.
'Make a button called: "cmdRecieve" with the same caption.

'Here follows the Code

Private sub cmdRecieve_Click()
     txtLocalIP.text = winsock1.LocalIP
     txtLocalHostName.text = winsock1.Localhostname
     txtLocalPort.text = winsock1.localport
End Sub

Download this snippet    Add to My Saved Code

Get Local information with the Winsock Control Comments

No comments have been posted about Get Local information with the Winsock Control. Why not be the first to post a comment about Get Local information with the Winsock Control.

Post your comment

Subject:
Message:
0/1000 characters