Hello, Welcome to Microsoft Q&A,
UWP provides TCP and UDP socket classes for both client-server and peer-to-peer applications. You can refer to Sockets - UWP applications | Microsoft Learn to see how to use them.
If the response is helpful, please click "Accept Answer" and upvote it.
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.