From a command prompt, type route print
. You will see something similar to this:
H:\>route print
<...>
IPv4 Route Table
===========================================================================
Active Routes:
Network Destination Netmask Gateway Interface Metric
0.0.0.0 0.0.0.0 172.19.2.3 172.19.2.20 25
127.0.0.0 255.0.0.0 On-link 127.0.0.1 331
127.0.0.1 255.255.255.255 On-link 127.0.0.1 331
127.255.255.255 255.255.255.255 On-link 127.0.0.1 331
172.19.2.0 255.255.255.0 On-link 172.19.2.20 281
172.19.2.20 255.255.255.255 On-link 172.19.2.20 281
172.19.2.255 255.255.255.255 On-link 172.19.2.20 281
224.0.0.0 240.0.0.0 On-link 127.0.0.1 331
224.0.0.0 240.0.0.0 On-link 172.19.2.20 281
255.255.255.255 255.255.255.255 On-link 127.0.0.1 331
255.255.255.255 255.255.255.255 On-link 172.19.2.20 281
===========================================================================
Use the columns Network Destination
and Netmask
to determine the best match to the destination (longest mask is the best). Note the Interface address
. That is the address of the outgoing interface.
Most likely, you will be using the destination 0.0.0.0 (default route).