Visual Basic: to send packets

From what I understand the Microsoft Winsock Object interacts with TCP/IP.  How can I make a program that would send any packet imaginable with VB?
LVL 2
happispiderAsked:
Who is Participating?
 
gecko_au2003Connect With a Mentor Commented:
http://www.acky.net/vb/vbtcp/

Also if you use the search button on this site ( experts exchange ) I am sure you will find PAQ's
0
 
mugman21Connect With a Mentor Commented:
Visual basic alone can not do what you need to. I would highly recommend that you use WinPcap. It's an open source packet driver, can sniff, or send custom packets. You can download it here:

http://winpcap.polito.it/

The one problem with this library is the calling convections used, this library doesn't work with Visual Basic alone. However, there are several COM components out there that will bridge the library to VB. One is called PacketX which can be downloaded from here:

http://www.beesync.com/products.html

Using WinPCap is the only methoud I've ever seen, or used that in a reliable and stable way can send or capture packets in VB. If you don't want to use PacketX, there are several other librarys that will wrap winpcap. I've seen one on sourceforge.net, but I can't remember what it was called. There is also another wrapper called vbpcap but I've never used it and can not testify to it's stability or ease of use.

Mugman
0
 
happispiderAuthor Commented:
thanks both of you!
0
 
gecko_au2003Commented:
Your Welcome and btw Than Q for grade and points :) Glad we could help ya out :)
0
All Courses

From novice to tech pro — start learning today.