Products | Versions |
---|---|
TIBCO Rendezvous | ALL |
There could be more than one NICs and IP addresses in the machine. How does iniftst get the IP address for the hostname.
The iniftst will use the gethostbyname(hostname) function to get IP addresses and put the returned IP addresses into h_addr_list, then it will choose the first IP in the h_addr_list and output it. Attached the hosttest.exe file, it will output the IP addresses returned from gethostbyname() function. Then you can see the order of the IP addresses.