"Sniffing" UDP packets?
"Sniffing" UDP packets?
"Sniffing" UDP packets?
"Sniffing" UDP packets?
"Sniffing" UDP packets?
"Sniffing" UDP packets? "Sniffing" UDP packets? "Sniffing" UDP packets? "Sniffing" UDP packets? "Sniffing" UDP packets? "Sniffing" UDP packets? "Sniffing" UDP packets? "Sniffing" UDP packets?
"Sniffing" UDP packets? "Sniffing" UDP packets?
"Sniffing" UDP packets?
Go Back  Xtreme Visual Basic Talk > > > "Sniffing" UDP packets?


Reply
 
Thread Tools Display Modes
  #1  
Old 07-21-2005, 02:46 PM
kopo kopo is offline
Freshman
 
Join Date: Jul 2005
Posts: 46
Default "Sniffing" UDP packets?


How can I get a Winsock control to accept packets that are not addressed to it?
I'm using one medical monitor to observe another over a network, and I'm trying to make a VB program to capture the information that's sent.
Reply With Quote
  #2  
Old 07-21-2005, 03:07 PM
Zumwalt Zumwalt is offline
Contributor
 
Join Date: Sep 2003
Location: Tampa, FL
Posts: 474
Default

Not 100% certain, but if the UDP packet is on a broadcast, you can just 'catch' it and not have a response from the catch back to the send.

Remember UDP is not guaranteed to arive to its destination.

Otherwise, I am clueless as to how you would accomplish this 'sniff'
Reply With Quote
  #3  
Old 07-21-2005, 03:28 PM
surixurient's Avatar
surixurient surixurient is offline
Junior Contributor
 
Join Date: Apr 2005
Location: between C0000h and C7FFFh
Posts: 351
Default

I dont think you can with a winsock control. perhaps you can with the ws2_32.dll APIs. I have seen one source that used a custom driver to intercept I/O from any port, process it, then send it on its way. hopefully you dont have to do something like that.
Reply With Quote
  #4  
Old 07-21-2005, 04:03 PM
b0b b0b is offline
Contributor
 
Join Date: Jul 2003
Posts: 741
Default

You can only receive the UDP packet with winsock if the packet has been broadcast and you know which port it is being sent to. Then a listening UDP socket on the right port would be able receive it.

If its not broadcast you wont even see the packet, unless your computer is acting as some sort of router.
Reply With Quote
  #5  
Old 07-21-2005, 05:38 PM
kopo kopo is offline
Freshman
 
Join Date: Jul 2005
Posts: 46
Default

No, the packets are sent from one specific IP address to another, neither of which is the capturing computer - it's not a broadcast, unfortunately. The source and destination ports are also known.

OK, if not with Winsock, then what should I use?
I've found a few of packet sniffers online that were made with VB, so it's certainly possible.
Reply With Quote
  #6  
Old 07-22-2005, 03:25 AM
crabby's Avatar
crabby"Sniffing" UDP packets? crabby is offline
mostly gone

Retired Moderator
* Expert *
 
Join Date: Aug 2002
Location: Oppum / Rhine area
Posts: 2,721
Default

Why would you want to run a network sniffer?
__________________
there are always two sides of a story and 12 ways to sing a song or write some code. so whats wrong ?

Avatar by lebb
Reply With Quote
  #7  
Old 07-22-2005, 08:07 AM
kopo kopo is offline
Freshman
 
Join Date: Jul 2005
Posts: 46
Default

Quote:
Originally Posted by morsnowski
Why would you want to run a network sniffer?
See the first post.
I'm using one medical monitor to observe the patient data sent by another medical monitor over a network. I haven't figured out how to replicate the information request packets sent by the client monitor, so I'd like to have the client monitor send them for me, and just capture the information that's sent back.
Reply With Quote
  #8  
Old 07-22-2005, 09:22 AM
Zumwalt Zumwalt is offline
Contributor
 
Join Date: Sep 2003
Location: Tampa, FL
Posts: 474
Default

Why not just create a server that all of the clients attach to, what you have just described is a peer to peer instead of client - server, for anything that is in the medical field, it is not a good solution to use peer to peer, instead have a central server that can handle the routing of the information.

This gives you the control of maintaining traffic logs of information, instead of 'intercepting' peer to peer traffic, just have the server act as a hub, then you can get what ever you need to get based on what the client is doing.
Reply With Quote
  #9  
Old 07-22-2005, 10:51 PM
kopo kopo is offline
Freshman
 
Join Date: Jul 2005
Posts: 46
Default

Well, so much for that. I've worked out how to send my own request packets from the computer, and don't need to sniff the traffic.
Yay for solving my own problems.
Reply With Quote
  #10  
Old 07-23-2005, 08:30 AM
crabby's Avatar
crabby"Sniffing" UDP packets? crabby is offline
mostly gone

Retired Moderator
* Expert *
 
Join Date: Aug 2002
Location: Oppum / Rhine area
Posts: 2,721
Default

Hi kopo even though I doubt your intentions, the answer could certainly be missued for malicious purposes.

ps Check your PM's
__________________
there are always two sides of a story and 12 ways to sing a song or write some code. so whats wrong ?

Avatar by lebb
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Forum Jump

Advertisement:





Free Publications
The ASP.NET 2.0 Anthology
101 Essential Tips, Tricks & Hacks - Free 156 Page Preview. Learn the most practical features and best approaches for ASP.NET.
subscribe
Programmers Heaven C# School Book -Free 338 Page eBook
The Programmers Heaven C# School book covers the .NET framework and the C# language.
subscribe
Build Your Own ASP.NET 3.5 Web Site Using C# & VB, 3rd Edition - Free 219 Page Preview!
This comprehensive step-by-step guide will help get your database-driven ASP.NET web site up and running in no time..
subscribe
"Sniffing" UDP packets?
"Sniffing" UDP packets?
"Sniffing" UDP packets? "Sniffing" UDP packets?
"Sniffing" UDP packets?
"Sniffing" UDP packets?
"Sniffing" UDP packets? "Sniffing" UDP packets? "Sniffing" UDP packets? "Sniffing" UDP packets? "Sniffing" UDP packets? "Sniffing" UDP packets? "Sniffing" UDP packets?
"Sniffing" UDP packets?
"Sniffing" UDP packets?
 
"Sniffing" UDP packets?
"Sniffing" UDP packets?
 
-->