I need to connect unreal and android with TCP

I want to connect unreal and android with TCP because I will use android tilt as a controller.
In which file should I create TCP communication?
And I’d appreciate it if you could give me an example of the code, if possible.

Hi, you will need to write a lot of code for this. I wrote a tcp connection between unreal and telegram, I hope it will get you some examples.