views:

145

answers:

5

Is it possible to programmatically change settings on a Netgear wireless router using C#? I have settings that I change often and I would like to create my own interface for making those changes. Currently I navigate to the admin web page (10.0.0.1) and it prompts me for a username and password. After I authenticate I can use the web interface to change the router's configuration.

If this isn't possible with Netgear, do any outher wireless routers have an API for developers?

Thanks!

Darvis

+1  A: 

I'm unaware of any consumer-grade routers that have an API like that, but you could always build something that (ab)uses the Web interface to do what you want, using something like selenium-rc or watir

Daniel DiPaolo
+1  A: 

There aren't any APIs out there to do this, but you can write something to make HTTP requests to the router to simulate the webUI being used.

I'm guessing most consumer routers are probably pretty simple to talk to. Authentication is probably nothing more than basic realm.

chris12892
Basic realm authentication is correct. I can get logged in, but I'm not sure how to determine what HTTP requests to send to the router to simulate a user navigating the UI. Any suggestions?
Darvis Lombardo
Well, you have two options: 1: Reverse engineer the Web UI2: Use a system like firebug to see how the requests are going across. I would recommend number 2.
chris12892
A: 

Any luck on doing this? I would like the same functionality. Thanks.

Carlos
A: 

I'm not familiar with this router, but I have done similar stuff programmatically via a telnet connection the router with Python. There's a cood telnet lib for C#: http://www.codeproject.com/KB/IP/MinimalisticTelnet.aspx

Uku Loskit
A: 

i would as well, any ideas?

Erx_VB.NExT.Coder