How will the iniftst get the IP address for the hostname

How will the iniftst get the IP address for the hostname

book

Article ID: KB0081123

calendar_today

Updated On:

Products Versions
TIBCO Rendezvous ALL

Description

There could be more than one NICs and IP addresses in the machine. How does iniftst get the IP address for the hostname.

Environment

Windows

Resolution

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. 

Issue/Introduction

How will the iniftst get the IP address for the hostname