| Ip address of a computer using winsock - CoderSource.net | | There is a function gethostbyname for getting the ip address using Winsock. This function will retrieve the ip address details into a variable of type "structure hostent".
The first step in creating this program is to ensure the socket library is initialized, if it is not initialized else-where.
|