Creating an app to send controls over Wifi

Hi. I have not made many applications on this platform, but I need some general help being able to send controller data (from this app using on screen buttons and joysticks) to my computer via something called cemuhook protocol. There are few apps out there that do it, like Lin Yifeng's DSUController on the Play store. I basically want to recreate this app, and be able to connect to my phone from my computer on a certain IP and port. I know this is vague, but any help would be appreciated. (The app is needed to connect to Dolphin Emulator and Cemu emulator on windows)

all the community discussions with respect to using WIFI to communicate with something.