Start learning and playing with the great libp2p library.
Mario Zupan wrote a nice tutorial for building a simple basic peer-to-peer app in rust.
You can find much more examples app on the libp2p examples github page.
Follow the tutorial: libp2p tutorial and the github source code.