Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Basically, 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 "Network Infrustructure", in that category, my router is listed, and in my case, it is "LINKSYS WAG160N Wireless-N ADSL2+ Gateway" and when you right-click and select properties, it lists basic info such as internal/gateway IP address, on mine it is ""

I would like to know how to retreive this information in ie: either registry location or Windows API call or .net framework reference etc, preferably a Windows API or Registry Location so that i can call it using a legacy VB6 app but anything will do at the moment as i am totally lost in this respect.

thanks guys :)

share|improve this question
up vote 1 down vote accepted

This information is provided from the Universal Plug-n-Play (UPnP) service running on your router. Windows has a UPnP API you should be able to use to query the device. Specifically the IUPnPDevice interface has the FriendlyName and PresentationURL properties, which should give you the name the IP you're talking about.

share|improve this answer
this was perfect and i am now where i want to be in my research. thank you so much. – user51047 Oct 19 '10 at 3:52

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .