Broadcast packets

Hi,
I have a server that streams broadcast udp packets. I created a test client and it works.
But on Unreal I can’t receive these packets.

Here’s my code:

Socket = ISocketSubsystem::Get(PLATFORM_SOCKETSUBSYSTEM)->CreateSocket(NAME_DGram, TEXT("default"), false);
	bool notBlocking = Socket->SetNonBlocking(true);
FString address = TEXT("192.168.0.255");
	int32 port = 1234;
	FIPv4Address ip;
	FIPv4Address::Parse(address, ip);
	
	TSharedRef<FInternetAddr> addr = ISocketSubsystem::Get(PLATFORM_SOCKETSUBSYSTEM)->CreateInternetAddr();
	addr->SetIp(ip.Value);
	addr->SetPort(port);

	bool connected = Socket->Connect(*addr);
	bool successful = Socket->Send((uint8*)TCHAR_TO_UTF8(""), size, sent);
	FString debugData;
	while (Socket->HasPendingData(PendingDataSize))
	{	
		Socket->Recv(ReceivedData, PendingDataSize, BytesRead);
	}

If I put the real server IP then everything works fine.
Can someone help?
Thank you.

Hello i am working on something similar to this and not finding any solution. by any chance were you able to get it to work.

there s a blueprint tcp /udp server plugin for free on the market place. called object deliverer. you can use it to connect, a stream data . maybe you should take a look