by Slippah (3 Submissions)
Category: Internet/HTML
Compatability: Visual Basic 3.0
Difficulty: Beginner
Date Added: Wed 3rd February 2021
Rating:
(3 Votes)
This code is a simple program designed to "sniff" or sense your own IP address and host name
and return it to you in a label. This program is so simple, the grunt of the
application is only 2 lines of code! But after I added a few extra features, the
code became 13 lines. This program allows you to copy your IP address and host name to the
clipboard (whoopdy doo) and it tells you your IP and host name, but other than that it does
nothing.
Note: In order for this code to work, you will need Microsoft Winsock 6.0 (an OCX)
Note: On the screen shot there is a blotched out part. I blotched this out
using a paint program, because the screen shot would display my IP address and host name.
This will not occur on your computer.
Download IP/Host Name Sensor (12 KB)