Hi,
Thanks for posting in Q&A platform.
Based on provided information, my understanding is the session host has 2 network adapters and you want the package from client can be sent to the specific IP address of one of these network adapters. If my understanding is wrong, please help to correct me.
If you need to resolve the hostname of session host to the specific IP address, you can add the map of hostname and IP address in the host file from client side. However, may I know whether this IP address and the IP of client are in the same subnet? If no, you should use IP routing for all traffic to the right subnet.
The hosts file is used to map hostnames (in other words domains) to IP addresses. With the hosts file, you can change the IP address that you resolve a given domain name to. This change only affects your own computer without affecting how the domain is resolved worldwide.
For more detailed steps on how to add a route to the Windows Routing Table, please refer to the following article:
How to Add a Static TCP/IP Route to the Windows Routing Table
Please Note: Since the websites are not hosted by Microsoft, the links may change without notice. Microsoft does not guarantee the accuracy of this information.
Best Regards,
Sunny
----------
If the Answer is helpful, please click "Accept Answer" and upvote it.
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.