Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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 "192.168.1.1"

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
add comment

1 Answer

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
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.