replace h_addr with h_addr_list[0]