# I need to connect to server via TCP

**URL:** <https://forums.unrealengine.com/t/i-need-to-connect-to-server-via-tcp/387279>\
**Category:** Multiplayer & Networking\
**Tags:** Networking, unreal-engine, question\
**Created:** [March 8, 2017, 7:11am UTC](https://forums.unrealengine.com/t/i-need-to-connect-to-server-via-tcp/387279 "2017-03-08T07:11:11Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![Shadowriver](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Shadowriver](https://forums.unrealengine.com/u/Shadowriver)\
**Post date:** [March 8, 2017, 10:06am UTC](https://forums.unrealengine.com/t/i-need-to-connect-to-server-via-tcp/387279/2 "2017-03-08T10:06:14Z")

</div>

In pure UE4 you can do this only via C++, in programming raw TCP/UDP network communication is usually called “sockets” (don’t mistake with HTML Sockets which work bit different with incorporation of HTTP) so search using that name

UE4 has dedicated module for raw network communication called (supprice) “sockets”, here API refrence:

> **[Sockets](https://docs.unrealengine.com/5.1/en-US/API/Runtime/Sockets/)**

Here oyu got some use examples from wiki

> **[A new, community-hosted Unreal Engine Wiki](https://forums.unrealengine.com/t/a-new-community-hosted-unreal-engine-wiki/141494)**
>
> After over a year in maintenance mode, the official Unreal Engine Wiki is now permanently offline. These resources now live on a new community-run Unreal Engine Community Wiki — https://unrealcommunity.wiki/! You will be able to find content from...

> **[A new, community-hosted Unreal Engine Wiki](https://forums.unrealengine.com/t/a-new-community-hosted-unreal-engine-wiki/141494)**
>
> After over a year in maintenance mode, the official Unreal Engine Wiki is now permanently offline. These resources now live on a new community-run Unreal Engine Community Wiki — https://unrealcommunity.wiki/! You will be able to find content from...

If you plan using HTTP, UE4 has also dedicated module for that so you don’t need to use raw TCP communication for it, here anwser that i posted in past showing how to use it

> **[Reading a file online](https://forums.unrealengine.com/questions/325380/reading-a-file-online.html)**
>
> I need to read a sequence of bytes stored in a basic txt file which can be found at a specific url. With a local file path I can use SaveFileToArray() function to store the bytes in a uint8 array, how can I do the same with the given file url?

and i know UE4 plugin called VaRest which enables HTTP communication in blueprint with parsing included

---

_[View the full topic](https://forums.unrealengine.com/t/i-need-to-connect-to-server-via-tcp/387279)._
