1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

disable enable internet connexion through modem?

Discussion in 'C, C++, C#' started by sandrine10, Jul 16, 2015.

  1. sandrine10

    sandrine10 Jr. VIP Jr. VIP

    Joined:
    Apr 14, 2010
    Messages:
    694
    Likes Received:
    70
    Gender:
    Female
    Location:
    WakWak
    I need a code for internet enable, disable either it may be dial-up or through modem.
    How it is Possible?
     
  2. HoNeYBiRD

    HoNeYBiRD Jr. VIP Jr. VIP

    Joined:
    May 1, 2009
    Messages:
    7,507
    Likes Received:
    8,436
    Gender:
    Male
    Occupation:
    Geographer, Tourism Manager
    Location:
    Ghosted
  3. sandrine10

    sandrine10 Jr. VIP Jr. VIP

    Joined:
    Apr 14, 2010
    Messages:
    694
    Likes Received:
    70
    Gender:
    Female
    Location:
    WakWak
    The renew ip address didn't work for me(tried it many times ) coz didn't use local area network,i'm connected through adsl!!
    Hust tried the first method enable/disable the internet connection: http://computerstepbystep.com/intern...windows_7.html with no success

    Anyway thanks HoNeYBiRD
     
    Last edited: Jul 16, 2015
  4. HoNeYBiRD

    HoNeYBiRD Jr. VIP Jr. VIP

    Joined:
    May 1, 2009
    Messages:
    7,507
    Likes Received:
    8,436
    Gender:
    Male
    Occupation:
    Geographer, Tourism Manager
    Location:
    Ghosted
    not sure what your main goal is, but if you want to change the ip address, that may not work at all if you have a static ip, in this case most of the time even resetting the modem/router doesn't work to get a new ip

    if you want to get a new ip in a given time frame automatically, you need to look into proxy services, backconnect proxies to be more precise
     
    • Thanks Thanks x 1
  5. sandrine10

    sandrine10 Jr. VIP Jr. VIP

    Joined:
    Apr 14, 2010
    Messages:
    694
    Likes Received:
    70
    Gender:
    Female
    Location:
    WakWak
    Problem solved after 2days of search...etc anyway happy that i did it at my own :)
     
  6. weedsmoker

    weedsmoker Junior Member

    Joined:
    May 2, 2011
    Messages:
    190
    Likes Received:
    79
    It would be nice if you shared your solution :), meanwhile I'll share mine.
    For some ADSL modems there is possibility of shell access. Then you can control modem to do some things like reset/renew ip address. Soft/hard reset usually takes some time, but you can quickly renew ip address within a few seconds without putting much stress on your modem. It can be scripted and used by bot on any OS. For example my script for Huawei modems and Win OS platform (probably can work with other type of modems with some modifications):

    Code:
    192.168.1.1 23
    WAIT "login:"
    SEND "YOUR_USERNAME\m"
    WAIT "password:"
    SEND "YOUR_PASSWORD\m"
    WAIT "$"
    SEND "modify ppp intf stop ifname ppp-0\m"
    WAIT "$"
    SEND "modify ppp intf start ifname ppp-0\m"
    I use this script with Telnet Scripting Tool application. Basically it connects to modem through telenet on ip 192.168.1.1 port 23 and sends your username and password, and then stops and starts ppp interface.