Click here to Skip to main content
15,895,746 members
Please Sign up or sign in to vote.
4.00/5 (1 vote)
See more:
I want to restart router using c# by programmatically

I am using the WebRequest object and pass router url and password

and send the request from router url but its not working.

If any idea then please let me know.
Posted
Updated 19-Sep-12 8:57am
v2
Comments
Rahul Rajat Singh 7-Mar-12 3:45am    
problematically?
CodeHawkz 19-Sep-12 14:56pm    
He means to 'programmatically' even though there is no such word :) I know you could understand :D Don't pick on the fellow, sin :)
CodeHawkz 19-Sep-12 14:55pm    
Well, I've been dying to write a code snippet to shut down my router but couldn't. If someone could add that too to his question, it would be awesome :P

Use WireShark to see what happens when you do it via the router's web UI, and then duplicate that with the WebRequest object. I believe WireShark is a free download. Google is your friend.
 
Share this answer
 
simply you can use (Selenium) Third Party drivers Control for control your browser its stable and easy way and you can hidden selenium browser if you want
 
Share this answer
 
v3

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900