OSC Packet Playback?

Is there anyway to record an OSC packet stream and playback to specific ports?

I am currently building one in p5 however it would be nice if maybe someone has already solved.

Thanks, Chris.

nuisun (at) gmail