Results 1 to 3 of 3

Thread: disconnect and reconnect to the internet

  1. #1

    Thread Starter
    New Member
    Join Date
    Dec 2005
    Posts
    2

    disconnect and reconnect to the internet

    hi, im a complete noob at visual basic 6 but i have been trying to find a tutorial that would teach me how to kill the internet connection to my computer, then in a set ammount of time (like 10-15 seconds) reconnect again. i am on ADSL and am permanetly connected through a router so is there anyway i can block the internet connection coming in? or any tutorials i can read that would teach me how?
    PS - i searched the forum but couldnt find any pertaining topics for what im trying to do, or at least any that i could understand.
    thanks

  2. #2
    Banned dglienna's Avatar
    Join Date
    Jun 2004
    Location
    Center of it all
    Posts
    17,901

    Re: disconnect and reconnect to the internet

    Welcome to the forums!

    I don't know why you'd want to do that, but you could use a command to do it, but you'd have to wait for a return, as it may take a few minutes to renew the connection.

    VB Code:
    1. IPCONFIG /RELEASE 'kill the connection

    and
    VB Code:
    1. IPCONFIG /RENEW ' get it back

    You could use the SHELL() command to execute external programs.

  3. #3

    Thread Starter
    New Member
    Join Date
    Dec 2005
    Posts
    2

    Re: disconnect and reconnect to the internet

    hi there, thanks for the fast response but a few minutes isnt going to work. you see im trying to make this program for a game i play where cheaters have kinda taken over the servers. i host my own game but a few cheats always manage to get in it and i ban them multiple times but they return over and over with new ip's. the only way for me to get rid of them is to take down the server or give my self a ci (connection interupted). after about 15 seconds of no internet my server will automatically shut down unfortunately so if there is any other possibilities to do it let me know.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width