2
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 tracert
, pathping
and route PRINT
but couldn't get the desired result.
post the errors that received from
route print
, tracert, and pathping. Maybe that Win7 box needs something along the lines of 'netsh ip reset`. – rjt – 2019-07-11T03:06:04.023