title: How to get a Router Gateway?
body: <p>I am using a routine to gather the internal IP addresses and it works well when there is only one IP address. But, on my laptop, it has VMWare Player installed and it has two Virtual Adapters and these IPs come up in the list.</p>
  
  <p>192.168.41.7 - 192.168.5.4 - 192.168.1.10</p>
  
  <p>The first two are VMWare's Virtual adapters. I know the router Gateway is 192.168.1.1. So, if I can programmatically read the routers Gateway I can then match the third segment of the IP to know which one I am after.</p>
  
  <p>I found some links to an MS site for getting adapter info, but I am looking for some code snippets as I have no idea where to start with the MS details.</p>
  
  <p>Can someone please assist or point me at some sites.</p>