|
-
Dec 21st, 2005, 11:51 PM
#1
Thread Starter
New Member
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
-
Dec 22nd, 2005, 12:08 AM
#2
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:
IPCONFIG /RELEASE 'kill the connection
and
VB Code:
IPCONFIG /RENEW ' get it back
You could use the SHELL() command to execute external programs.
-
Dec 22nd, 2005, 12:20 AM
#3
Thread Starter
New Member
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|