Block IP In VB - Printable Version -Shoutbox (https://shoutbox.menthix.net) +-- Forum: MsgHelp Archive (/forumdisplay.php?fid=58) +--- Forum: Skype & Technology (/forumdisplay.php?fid=9) +---- Forum: Tech Talk (/forumdisplay.php?fid=17) +----- Thread: Block IP In VB (/showthread.php?tid=30867) Block IP In VB by DJeX on 09-02-2004 at 03:49 AM Is there any way with a Winsock to block an IP from connecting to your computer? I can't seem to figure out how to do it. Any one know? RE: Block IP In VB by Mike on 09-02-2004 at 06:08 AM
Well yes: code: Hope it helps RE: Block IP In VB by DJeX on 09-02-2004 at 07:42 AM
So how would I get IP's from a listbox and block them? RE: Block IP In VB by Mike on 09-02-2004 at 11:20 AM
Try this: code:I believe that this should work. Of course you need to change list1 and winsock1 to the right names RE: Block IP In VB by DJeX on 09-02-2004 at 06:07 PM
Will this for block websites too? RE: Block IP In VB by Millenium_edition on 09-02-2004 at 06:11 PM
you can block your computer from connecting to an ip, using the HOSTS file. RE: Block IP In VB by DJeX on 09-02-2004 at 06:50 PM
quote: Umm I don't think so. Theres a way in VB I know that i've seen it before. I just can't figure out how to do it. RE: Block IP In VB by Millenium_edition on 09-03-2004 at 02:50 PM
The vb way involves netstatting and closing connections, at least that's what I think because my guess is that a winsock hook or something like that is way too advanced for VB... I don't know, so don't take this as the only possibility... RE: Block IP In VB by DJeX on 09-03-2004 at 06:14 PM I understand, so I'll just make a netstat and when the IP appers close the connection. |