title: How to get Router Name & IP as shown in Windows Network Tab? (in code)
body: <p>If you go to Start and click Computer and then click on the Network link on the left hand side, you'll notice on the right hand side several categories, one of which is titled &quot;Network Infrastructure&quot;, in that category, my router is listed, and in my case, it is <code>&quot;LINKSYS WAG160N Wireless-N ADSL2+ Gateway&quot;</code> and when you right-click and select properties, it lists basic info such as internal/gateway IP address, on mine it is <code>&quot;192.168.1.1&quot;</code></p>
  <p>I would like to know how to retrieve this information in code, preferably a Windows API so that I can call it using a legacy VB6 app. Also, even if you just know a .NET version or a Delphi version, please do list that as well as I can code in both. However, the answer I'm ultimately seeking is a method to access this via VB6 so that would probably be a WinAPI call, however, other methods are also welcome in case I can't find a legacy method.</p>