Forums > MaxMSP

Network Monitor

Apr 20 2006 | 6:55 pm

Hi all,

Maybe a bit of a newbie question.

Im trying to build a network monitor in max that triggers notes when packets are sent and received and also depending on the amount of packets control tempo. What would be the best way to do this? Can I do it with the mxj send/recieve?

Thanks in advance for any help

Apr 20 2006 | 7:13 pm

OSC is a nice way to go for control of things remotely ’cause you can
create namespaces for the messages and route them accordingly without
having to devise your own parsing scheme. There are some max objects
for doing this: udpreceive, udpsend.


Apr 20 2006 | 7:17 pm


Will this allow me to intercept the packets without affecting other programs?

Ideally id like the patch to work in the background while I access websites and transfer data.

Apr 20 2006 | 7:27 pm

Oh, are you trying to sniff packets?? that’s a different story. Maybe
you could download Carnivore and do an mxj with that code.


Apr 20 2006 | 7:32 pm

I think the program you’re describing is called a "packet sniffer", but I
don’t know whether the OSC objects support this. Anyone?

I believe most packet sniffers generate plain text log files, so maybe you
could use Max to access and parse the data in thse files to do what you

Best of luck!

– *V*I*R*G*O*

Apr 20 2006 | 7:35 pm

You need to run your ethernet card in promiscuous mode to capture all
data. This requires using packet capture libraries like libpcap on
unix and windows.

might I suggest using ‘carnivore’ by the RSG – which is ready made to
give you that data :)

v a d e //


Apr 20 2006 | 7:45 pm

Wow, thanks for all these replies!

I think capturing all the data to file is going to be my best bet, since writing things in java isnt exactly my forte.

Apr 20 2006 | 9:42 pm

Which platform are you workling on? I have a (not well tested) carnivore
external for windows that sniffs all the network traffic and gives it to
you through an outlet….


Apr 20 2006 | 10:53 pm

Its for windows :) Ive got carnivore working through a very basic patch, any help is most appreciated

Oct 28 2013 | 12:59 pm

Is it possible to use Carnivore as a MAX lib rather than in Processing?

Viewing 10 posts - 1 through 10 (of 10 total)

Forums > MaxMSP