Home > Uncategorized > Reconnecting ADSL programatically

Reconnecting ADSL programatically

I had an issue that my ADSL connection kept disconnecting every few hours, which meant that I manually had to go and open
the local web interface to my ADSL modem (Binatone), and press connect.
 
I figured out how to do this from code, by making a GET request to the following URL, my ADSL was reconnected.
 

http://192.168.1.2/doc/loginout.htm?

WINDWEB_URL = %2Fdoc%2Floginout.htm&

simple_ppp_username = xxxx&

simple_ppp_pwd = xxxx&

wanAdapterSelection = 0&

wan_encapsulation = 0&

wan_VPI = 0&

wan_VCI = 38&

PPP_connection_number = 1&

New_PPP_Action = 0

 

Advertisements
Categories: Uncategorized
  1. No comments yet.
  1. No trackbacks yet.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: