Retrieve Your Local IP Address and Host Name and Save it To The Desktop
Version Compatibility: Visual Basic 6
For this project, enable the Microsoft winsock 6.0 Component at Project > Components... and then add one to your form. The code executes on the Form_Load() event, but you can change it to a command button or any other event. Once compiled and run, check your Desktop for the text file that includes your IP address and host name.
Instructions: Copy the declarations and code below and paste directly into your VB project.