How To Obtain the Host IP Address Using Windows Sockets (160215)
The information in this article applies to:
- Microsoft Visual Basic Learning Edition for Windows 5.0
- Microsoft Visual Basic Learning Edition for Windows 6.0
- 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 Q160215 SUMMARY
This article demonstrates how to obtain the host IP address of the local
machine by using the GetHostByName API of the Windows Sockets dll,
Wsock32.dll. To obtain the host IP address, you must use GetHostByName in
conjunction with GetHostName.
Modification Type: | Minor | Last Reviewed: | 8/23/2006 |
---|
Keywords: | kbhowto KB160215 |
---|
|