The get_myaddress() call returns the local host's internet address.
Syntax
#include <rpc\rpc.h> void get_myaddress(addr) struct sockaddr_in *addr;
Parameters
addr
Description
The get_myaddress() call puts the local host's internet address into addr. The port number (addr->sin_port) is set to htons (PMAPPORT), which is 111.