| :: Get your IP address and your computer name using the Microsoft Winsock Control |
Author |
WaLDoxWhO |
Language |
VB6 |
Operating
Systems |
Windows 95, 98 and NT |
| Usage |
'this is for gettin your IP address and your computer
name using the winsock control.
'when you first load the winsock control its named
'winsock1 so i'll use that name for this example. i'll also be using a
'text box called Text1 to place the IP address.
form_load()
' This will put your IP
address in the Text1 text box.
Text1.text = Winsock1.LocalIp
'now for gettin your
Computers Name.
form_load()
' This will put your
computers name in the Text1 text box.
Text1.text = Winsock1.LocalHostName
'I hope this helps someone,
these are very simple codes.
'one liners as i like to call them.. anyways, enjoy
'-WaLDoxWhO |
|
 |
|
 |