How can i get the network interface (route) being used for communication on Windows 7?
On Linux we can get this through:
ip route get 192.168.0.116
And from Windows 8 to 10, using this PS command:
Find-NetRoute -RemoteIPAddress 192.168.0.116 | Select-Object interfaceIndex -Last 1.
This gives the index of the network interface being used for communication, and through index we can find the actual network interface.
I have tried
route PRINT but couldn't get the desired result.