Hello,
These Network examples come with Processing and work as is for me (last two “Shared” ones) on the same PC:
I can also modify them to work on different PCs on my network.
I recall also getting this to work from home to work if I setup my router correctly.
You need to read descriptions for each before using.
Reference:
https://processing.org/tutorials/network
:)