SAMPLE: Winsock.exe Getting HostAddress Using Windows Sockets (154512)
The information in this article applies to:
- Microsoft Visual Basic Professional Edition for Windows 5.0
- Microsoft Visual Basic Professional Edition for Windows 6.0
- Microsoft Visual Basic Enterprise Edition for Windows 5.0
- Microsoft Visual Basic Enterprise Edition for Windows 6.0
- Microsoft Visual Basic Standard Edition, 32-bit, for Windows 4.0
- Microsoft Visual Basic Professional Edition, 32-bit, for Windows 4.0
- Microsoft Visual Basic Enterprise Edition, 32-bit, for Windows 4.0
This article was previously published under Q154512 SUMMARY This article demonstrates how to get the HostAddress of a
machine using Windows Sockets. The TCP/IP network protocol is shipped with all
Windows operating systems and is becoming increasingly more important with its
Internet compatibility. There is an API set for Windows Sockets that can work
with TCP/IP and help to return information such as the HostName or the IP
Address of a machine. This is obviously reliant on the presence of the relevant
DNS or WINS servers and the TCP/IP protocol being installed. Below is a sample
showing how to extract the machine HostAddress. The following file is available for
download from the Microsoft Download Center: For
additional information about how to download Microsoft Support files, click the
following article number to view the article in the Microsoft Knowledge Base: 119591 How to Obtain Microsoft Support Files from Online Services
Microsoft scanned this file for viruses. Microsoft used the most
current virus-detection software that was available on the date that the file
was posted. The file is stored on security-enhanced servers that help to
prevent any unauthorized changes to the file.
Modification Type: | Minor | Last Reviewed: | 8/5/2004 |
---|
Keywords: | kbdownload kbfile kbhowto kbsample kbWinsock KB154512 |
---|
|