UDP server not receving any data using the function socket->recvFrom function

I want to create a UDP server in unreal. I have done it in python before but it’s kind of difficult for me to do this in unreal since i do not know where to find all the function that I need. Some how I have managed to write the code and get it working but it does not receive any data from the socket->recvFrom function
Note I have added Networking and sockets to the ProjectName.build.cs file.