Remote Midi Communication

Hello i have a X bee question i thought i run it through here. My project involves two laptops.

PC1

Midi controller will trigger Ableton library
possibly synced with a VJ software to
trigger visuals and midi clips. X Bee sender

I want the midi signals produced by the user who
plays the music and visuals to be wired
to the other

PC2

pc/mac using X bee which will interpret this midi signals with
the X bee receiver will trigger LED lights using
the DMX software by reinterpreting the midi data signals

How can i do this ? I’m a little confused on the code part
on how it receives the midi signals and interprets
the mid signals

is there a specific code i can use?