TCP connection

UE4 provides network socket APIs (don’t mistake it with Web Socket and not mesh socket) for that, you will need to code in C++, but considering you use it as category i assume you ready for it. Here some tutorials:

Also study API refrence: