# \#fsocket

**URL:** https://forums.unrealengine.com/tag/fsocket/1398.md

[Latest](https://forums.unrealengine.com/latest.md) · [Categories](https://forums.unrealengine.com/categories.md) · [Tags](https://forums.unrealengine.com/tags.md)

---

## [IPv6 Networking using FSocket or similar](https://forums.unrealengine.com/t/ipv6-networking-using-fsocket-or-similar/2566993)

<div class="topic-metadata">

**Author:** [@eltom](https://forums.unrealengine.com/u/eltom)\
**Replies:** 1\
**Last updated:** [June 20, 2025, 3:35am UTC](https://forums.unrealengine.com/t/ipv6-networking-using-fsocket-or-similar/2566993 "2025-06-20T03:35:58Z")

</div>

In UE5.6 I found this excellent thread: UDP Socket C++ tutorial Updated 2021 however it appears that they are using IPv4. How can I connect using IPv6? I noticed that FSocket has a Connect method that takes a FInternetA…

---

## [Get multiple SceneCapture simultaneously to be sent via TCP](https://forums.unrealengine.com/t/get-multiple-scenecapture-simultaneously-to-be-sent-via-tcp/1091993)

<div class="topic-metadata">

**Author:** [@scalabro12](https://forums.unrealengine.com/u/scalabro12)\
**Replies:** 0\
**Last updated:** [April 17, 2023, 6:21pm UTC](https://forums.unrealengine.com/t/get-multiple-scenecapture-simultaneously-to-be-sent-via-tcp/1091993 "2023-04-17T18:21:23Z")

</div>

Hello there, I’m working on a multicamera system to get frames from Unreal, while receiving some states from a python server to update the pose. My main bottleneck is how to handle multiple captures to be set simultaneo…

---

## [How to I get my Socket to start listening?](https://forums.unrealengine.com/t/how-to-i-get-my-socket-to-start-listening/365484)

<div class="topic-metadata">

**Author:** [@Moynzy](https://forums.unrealengine.com/u/Moynzy)\
**Replies:** 5\
**Last updated:** [December 11, 2022, 12:24am UTC](https://forums.unrealengine.com/t/how-to-i-get-my-socket-to-start-listening/365484 "2022-12-11T00:24:53Z")

</div>

Hi, from looking at Ramas tutorial Rama\<3 I’ve attempted to implement a listen server (that will do light work in the b.ground). UServer::UServer() { ReceiveBufferSize = 2 \* 1024 \* 1024; } void UServer::StartListening…

---

## [CreateSocket() fails on android](https://forums.unrealengine.com/t/createsocket-fails-on-android/464629)

<div class="topic-metadata">

**Author:** [@Anonymous\_bfb2bb72cb45fdb1da6a7827d1fe5381](https://forums.unrealengine.com/u/Anonymous_bfb2bb72cb45fdb1da6a7827d1fe5381)\
**Replies:** 0\
**Last updated:** [May 4, 2020, 9:13am UTC](https://forums.unrealengine.com/t/createsocket-fails-on-android/464629 "2020-05-04T09:13:12Z")

</div>

Socket creation fails on Android. m\_pSocket = ISocketSubsystem::Get(PLATFORM\_SOCKETSUBSYSTEM)-\>CreateSocket(NAME\_Stream, TEXT("TEST"), false); Engine\\Source\\Runtime\\Sockets\\Private\\BSDSockets\\SocketSubsystemBSD.cpp F…

---

## [FSocket-\>Recv no data response](https://forums.unrealengine.com/t/fsocket-recv-no-data-response/296977)

<div class="topic-metadata">

**Author:** [@StewVanB](https://forums.unrealengine.com/u/StewVanB)\
**Replies:** 6\
**Last updated:** [January 23, 2019, 8:20pm UTC](https://forums.unrealengine.com/t/fsocket-recv-no-data-response/296977 "2019-01-23T20:20:50Z")

</div>

I have gathered as much data as I could find in the documentation as well as around the web on UE4’s socket networking ability. I have successfully connected to a server and sent data. The server echos the sent data back…

---

## [FSocket-\>Recv: RCON polling loop gets stuck on Linux server](https://forums.unrealengine.com/t/fsocket-recv-rcon-polling-loop-gets-stuck-on-linux-server/393857)

<div class="topic-metadata">

**Author:** [@anonymous\_user\_89bd8432](https://forums.unrealengine.com/u/anonymous_user_89bd8432)\
**Replies:** 1\
**Last updated:** [October 3, 2018, 7:48am UTC](https://forums.unrealengine.com/t/fsocket-recv-rcon-polling-loop-gets-stuck-on-linux-server/393857 "2018-10-03T07:48:35Z")

</div>

For a RCON server we are using the following code snippet within a loop: int32 BytesRead; uint8 Data; if (!Socket-\>Recv(&Data, 1, BytesRead, ESocketReceiveFlags::Peek)) { ... } On Windows dedicated server it works fin…

---

## [Access to Engine Socket directly?](https://forums.unrealengine.com/t/access-to-engine-socket-directly/434262)

<div class="topic-metadata">

**Author:** [@RocketMania](https://forums.unrealengine.com/u/RocketMania)\
**Replies:** 0\
**Last updated:** [September 22, 2018, 4:51am UTC](https://forums.unrealengine.com/t/access-to-engine-socket-directly/434262 "2018-09-22T04:51:39Z")

</div>

Current i made master server that communicates with UE4. i made another UDP Socket on my game ( FSocket ) that communicates with my master server. so i got 2 sockets on my game. the engine socket and my own socket. I ma…

---

## [FSocket-\>Send progress or complete information?](https://forums.unrealengine.com/t/fsocket-send-progress-or-complete-information/419958)

<div class="topic-metadata">

**Author:** [@Mctittles](https://forums.unrealengine.com/u/Mctittles)\
**Replies:** 1\
**Last updated:** [March 16, 2018, 1:01am UTC](https://forums.unrealengine.com/t/fsocket-send-progress-or-complete-information/419958 "2018-03-16T01:01:29Z")

</div>

No. FSocket just wraps standard socket libraries (depending on platform) and I’m fairly certain there’s no way to get that information from the network layer. The only way to know for sure is to have the other side send…

---

## [UDP Listener not getting messages](https://forums.unrealengine.com/t/udp-listener-not-getting-messages/406846)

<div class="topic-metadata">

**Author:** [@anonymous\_user\_08787d181](https://forums.unrealengine.com/u/anonymous_user_08787d181)\
**Replies:** 3\
**Last updated:** [October 13, 2017, 7:44pm UTC](https://forums.unrealengine.com/t/udp-listener-not-getting-messages/406846 "2017-10-13T19:44:29Z")

</div>

I am trying to create a UDP listener but I do not seem to be getting any messages and I am not sure what step I am missing UNetworkManager\* UNetworkManager::ConstructNetworkManager(const FString& Description, const FStr…

---

## [Help,How can I get FSocket working?](https://forums.unrealengine.com/t/help-how-can-i-get-fsocket-working/405180)

<div class="topic-metadata">

**Author:** [@anonymous\_user\_8a9db2b8](https://forums.unrealengine.com/u/anonymous_user_8a9db2b8)\
**Replies:** 1\
**Last updated:** [September 22, 2017, 4:01am UTC](https://forums.unrealengine.com/t/help-how-can-i-get-fsocket-working/405180 "2017-09-22T04:01:14Z")

</div>

That’s my codes ： include "MyPawn.h" include "Runtime/Engine/Classes/Camera/CameraComponent.h " include "Runtime/Sockets/Public/Sockets.h" include "Runtime/Sockets/Public/SocketSubsystem.h " FSocket\* psocket; AMyP…

---

## [\[BUG\] FSockets and IPv6 networks](https://forums.unrealengine.com/t/bug-fsockets-and-ipv6-networks/389626)

<div class="topic-metadata">

**Author:** [@Saltylike](https://forums.unrealengine.com/u/Saltylike)\
**Replies:** 2\
**Last updated:** [August 30, 2017, 1:51pm UTC](https://forums.unrealengine.com/t/bug-fsockets-and-ipv6-networks/389626 "2017-08-30T13:51:53Z")

</div>

Hello, our team is working in a mobile multiplayer game (\[link\]\[1\]). We are about to launch a external test flight on IOS but Apple rejected our app because 'is not IPv6 capable", here the message: “We discovered one …

---

## [UE4 Sockets HasPendingData() false before data is finished](https://forums.unrealengine.com/t/ue4-sockets-haspendingdata-false-before-data-is-finished/395367)

<div class="topic-metadata">

**Author:** [@anonymous\_user\_24a545b8](https://forums.unrealengine.com/u/anonymous_user_24a545b8)\
**Replies:** 0\
**Last updated:** [June 2, 2017, 10:27pm UTC](https://forums.unrealengine.com/t/ue4-sockets-haspendingdata-false-before-data-is-finished/395367 "2017-06-02T22:27:03Z")

</div>

I have been using the Unreal FSocket to send and receive data. For some reason I’ve never been able to get valid behavior from socket-\>HasPendingData(). Even when I gather data from socket-\>Recv() the HasPendingData() ha…

---

## [UDP C++ works on Windows but not on Android](https://forums.unrealengine.com/t/udp-c-works-on-windows-but-not-on-android/383439)

<div class="topic-metadata">

**Author:** [@Yatima1460](https://forums.unrealengine.com/u/Yatima1460)\
**Replies:** 1\
**Last updated:** [January 31, 2017, 3:34am UTC](https://forums.unrealengine.com/t/udp-c-works-on-windows-but-not-on-android/383439 "2017-01-31T03:34:39Z")

</div>

Hi all! My problem is very simple, I need to send custom data from one project to another using UDP, I modified the famous Rama tutorial; The following code works perfectly on Windows (using “192.168.1.2” as the IP add…

---

## [FSocket connection between levels](https://forums.unrealengine.com/t/fsocket-connection-between-levels/381431)

<div class="topic-metadata">

**Author:** [@anonymous\_user\_c5043162](https://forums.unrealengine.com/u/anonymous_user_c5043162)\
**Replies:** 2\
**Last updated:** [January 12, 2017, 3:24am UTC](https://forums.unrealengine.com/t/fsocket-connection-between-levels/381431 "2017-01-12T03:24:26Z")

</div>

I am working on UE4 for a little while, totally a newbie. I am handling a problem is, how can I share FSocket connection between levels. For instance, UE works as a socket server, connection established in Level 1, whe…

---

## [FSocket::GetConnectionState return "Connected" after \*just\* created](https://forums.unrealengine.com/t/fsocket-getconnectionstate-return-connected-after-just-created/381425)

<div class="topic-metadata">

**Author:** [@anonymous\_user\_684f066a](https://forums.unrealengine.com/u/anonymous_user_684f066a)\
**Replies:** 0\
**Last updated:** [January 10, 2017, 7:49am UTC](https://forums.unrealengine.com/t/fsocket-getconnectionstate-return-connected-after-just-created/381425 "2017-01-10T07:49:17Z")

</div>

I created the FSocket instance like below: FSocket\* Socket\_; Socket\_ = ISocketSubsystem::Get(PLATFORM\_SOCKETSUBSYSTEM)-\>CreateSocket(NAME\_Stream, TEXT("TestSocket"), false); and I tried to get the state of socket like …

---

## [UDP data, jittering](https://forums.unrealengine.com/t/udp-data-jittering/376481)

<div class="topic-metadata">

**Author:** [@antithing](https://forums.unrealengine.com/u/antithing)\
**Replies:** 4\
**Last updated:** [November 16, 2016, 7:45pm UTC](https://forums.unrealengine.com/t/udp-data-jittering/376481 "2016-11-16T19:45:51Z")

</div>

Hi, I have a simple UDP listener set up in UE4. I connect on BeginPlay, and every tick I run this: if ( ReceiverSocket-\>HasPendingData(bufferSize)) { uint8 \*buffer = new uint8\[(const uint32)bufferSize\]; int32 byte…

---

## [How to check FSocket Send ewouldblock?](https://forums.unrealengine.com/t/how-to-check-fsocket-send-ewouldblock/360289)

<div class="topic-metadata">

**Author:** [@Hugyou](https://forums.unrealengine.com/u/Hugyou)\
**Replies:** 0\
**Last updated:** [June 10, 2016, 9:18am UTC](https://forums.unrealengine.com/t/how-to-check-fsocket-send-ewouldblock/360289 "2016-06-10T09:18:41Z")

</div>

Hello, I use FSocket with NonBlocking. I read some text that FSocket-\>send() doesn’t return false when ewouldblock situation. does it? So, I want to know how to check ewouldblock when I call send(). Should I compare …

---

## [Streaming data in with an fSocket](https://forums.unrealengine.com/t/streaming-data-in-with-an-fsocket/356541)

<div class="topic-metadata">

**Author:** [@antithing](https://forums.unrealengine.com/u/antithing)\
**Replies:** 0\
**Last updated:** [May 5, 2016, 4:01pm UTC](https://forums.unrealengine.com/t/streaming-data-in-with-an-fsocket/356541 "2016-05-05T16:01:13Z")

</div>

Hi all, I am attempting to build a simple socket connection into UE4.11. I have this code, based on many hours internet trawling: void UMyfTCPObject::Connect() { UE\_LOG(LogTemp, Warning, TEXT("ConnectionManager::Init…

---

## [Android FSocket error SE\_EBADF](https://forums.unrealengine.com/t/android-fsocket-error-se-ebadf/356268)

<div class="topic-metadata">

**Author:** [@Radiian](https://forums.unrealengine.com/u/Radiian)\
**Replies:** 0\
**Last updated:** [May 3, 2016, 2:14am UTC](https://forums.unrealengine.com/t/android-fsocket-error-se-ebadf/356268 "2016-05-03T02:14:44Z")

</div>

I’m trying to connect to a server on an android app but when I try to connect I get the error SE\_EBADF. If I run it on either of my two computers it works just fine and connects, but when deployed to android it doesn’t w…

---

## [Why does UE4 always miss the first packet?](https://forums.unrealengine.com/t/why-does-ue4-always-miss-the-first-packet/351295)

<div class="topic-metadata">

**Author:** [@Moynzy](https://forums.unrealengine.com/u/Moynzy)\
**Replies:** 2\
**Last updated:** [March 24, 2016, 6:11pm UTC](https://forums.unrealengine.com/t/why-does-ue4-always-miss-the-first-packet/351295 "2016-03-24T18:11:53Z")

</div>

Hi, I press a button, and it sends a packet, containing a string data “Hello” to my server. My C# server receives it, and then sends it back to the client (UE4). My UE4 doesn’t get the packet. TArray\<uint8\> Receive…

---

## [UDP FSocket::SendTo crash editor in the second call](https://forums.unrealengine.com/t/udp-fsocket-sendto-crash-editor-in-the-second-call/350051)

<div class="topic-metadata">

**Author:** [@PrizZzt](https://forums.unrealengine.com/u/PrizZzt)\
**Replies:** 1\
**Last updated:** [March 16, 2016, 6:00pm UTC](https://forums.unrealengine.com/t/udp-fsocket-sendto-crash-editor-in-the-second-call/350051 "2016-03-16T18:00:39Z")

</div>

I use UDP FSocket to connect to the server, written in C++ and Boost. The network code is located in my PlayerController: void ATPlayerController::Connect() { DebugPrint("void ATPlayerController::Connect()"); FIPv4Ad…

---

## [Flush/Data on Demand](https://forums.unrealengine.com/t/flush-data-on-demand/346302)

<div class="topic-metadata">

**Author:** [@anonymous\_user\_89ec788d](https://forums.unrealengine.com/u/anonymous_user_89ec788d)\
**Replies:** 4\
**Last updated:** [February 3, 2016, 8:00pm UTC](https://forums.unrealengine.com/t/flush-data-on-demand/346302 "2016-02-03T20:00:36Z")

</div>

I’ve been developing a plugin using the FSocket API, and I’ve come to a point where when I want my UE4 client to send the outbound data present in the socket’s output stream buffer, that I need to close the socket itself…

---

## [FSocket doesn't stay connected](https://forums.unrealengine.com/t/fsocket-doesnt-stay-connected/343776)

<div class="topic-metadata">

**Author:** [@Radiian](https://forums.unrealengine.com/u/Radiian)\
**Replies:** 9\
**Last updated:** [January 15, 2016, 7:35am UTC](https://forums.unrealengine.com/t/fsocket-doesnt-stay-connected/343776 "2016-01-15T07:35:56Z")

</div>

I’m playing around with FSocket trying to access a simple server I’ve thrown together in C# but I’m having issues. The server accepts the connection ok, but its immediately closed. I’m not sure if its a problem with my c…

---

## [Receiving data](https://forums.unrealengine.com/t/receiving-data/339642)

<div class="topic-metadata">

**Author:** [@Moynzy](https://forums.unrealengine.com/u/Moynzy)\
**Replies:** 6\
**Last updated:** [November 25, 2015, 12:48pm UTC](https://forums.unrealengine.com/t/receiving-data/339642 "2015-11-25T12:48:45Z")

</div>

Hey, I’m trying to receive data from from my login server. virtual bool Recv ( uint8 \* Data, int32 BufferSize, int32 & BytesRead, ESocketReceiveFlags::Type Flags ) My implementation goes… uint8 Data;…

---

## [Why I need to restart the editor in order to run the game as host by using FSocket?](https://forums.unrealengine.com/t/why-i-need-to-restart-the-editor-in-order-to-run-the-game-as-host-by-using-fsocket/335822)

<div class="topic-metadata">

**Author:** [@anonymous\_user\_fe4a0cd2](https://forums.unrealengine.com/u/anonymous_user_fe4a0cd2)\
**Replies:** 2\
**Last updated:** [October 20, 2015, 8:33am UTC](https://forums.unrealengine.com/t/why-i-need-to-restart-the-editor-in-order-to-run-the-game-as-host-by-using-fsocket/335822 "2015-10-20T08:33:32Z")

</div>

I use FSocket to build connection and make my game run as host. I click “play” to test the game and it works and do get connecton. But after that, if I want to test my game again , I need to restart the editor otherwi…

---

## [Connecting to Socket Server](https://forums.unrealengine.com/t/connecting-to-socket-server/278768)

<div class="topic-metadata">

**Author:** [@HailstoneRyan](https://forums.unrealengine.com/u/HailstoneRyan)\
**Replies:** 8\
**Last updated:** [February 27, 2015, 8:59am UTC](https://forums.unrealengine.com/t/connecting-to-socket-server/278768 "2015-02-27T08:59:09Z")

</div>

I’ve done what reading I can in the documentation so far, and I believe I’m on the right track but perhaps someone can correct me. I’m attempting to connect to a custom socket server rather than a dedicated server run b…

---

## [Unrecognized type 'FSocket'](https://forums.unrealengine.com/t/unrecognized-type-fsocket/307167)

<div class="topic-metadata">

**Author:** [@pansensory](https://forums.unrealengine.com/u/pansensory)\
**Replies:** 4\
**Last updated:** [February 18, 2015, 5:53pm UTC](https://forums.unrealengine.com/t/unrecognized-type-fsocket/307167 "2015-02-18T17:53:08Z")

</div>

Ok this is driving me a little crazy. I am unable to build my class because of an Unrecognized type ‘FSocket’ error in my header. But I feel like I’m doing everything right. I’ve added “Sockets” and “Networking” to the P…

---

## [When does FSocket block?](https://forums.unrealengine.com/t/when-does-fsocket-block/303677)

<div class="topic-metadata">

**Author:** [@Mattlauk](https://forums.unrealengine.com/u/Mattlauk)\
**Replies:** 6\
**Last updated:** [January 12, 2015, 8:23pm UTC](https://forums.unrealengine.com/t/when-does-fsocket-block/303677 "2015-01-12T20:23:40Z")

</div>

Considering ClientSocket is an FSocket, is this ideal for getting data from the socket as quick as possible? while (this-\>IsAlive) { if (this-\>ClientSocket-\>HasPendingData(dataSize) || this-\>ClientSocket-\>Wait(ESock…

---

## [Why doesn't work recv()?](https://forums.unrealengine.com/t/why-doesnt-work-recv/292869)

<div class="topic-metadata">

**Author:** [@kyaem](https://forums.unrealengine.com/u/kyaem)\
**Replies:** 0\
**Last updated:** [September 4, 2014, 1:24pm UTC](https://forums.unrealengine.com/t/why-doesnt-work-recv/292869 "2014-09-04T13:24:51Z")

</div>

that’s my code i use singleton class and that gives FSocket; i saw connect server, and sending to server. but, when server sends to unreal client, client doesn’t receive. server use tcp, and send data like broadcast …

---

## [How can I get FSocket working?](https://forums.unrealengine.com/t/how-can-i-get-fsocket-working/291414)

<div class="topic-metadata">

**Author:** [@kyaem](https://forums.unrealengine.com/u/kyaem)\
**Replies:** 2\
**Last updated:** [August 27, 2014, 4:12pm UTC](https://forums.unrealengine.com/t/how-can-i-get-fsocket-working/291414 "2014-08-27T16:12:19Z")

</div>

I use version 4.4 preview. and i saw lots of post about socket network. i just want to make an echo client. but it’s not working many problems… i added Build.cs PublicDependencyModuleNames “Sockets” then i include t…

[Next page](https://forums.unrealengine.com/tag/fsocket/1398.md?match_all_tags=true&page=1&tags%5B%5D=fsocket)
