Make 2 Sockets Use the Same Port

I am creating 2 sockets with SocketSubsystem->CreateSocket(). One is a TCP socket and the other one is a UDP socket. These 2 use a different port to send messages to a server.

Is it possible to make them send messages to a server while both are using the same port to do so?

In theory, yes, you can, because the port udp/10240 it’s not the same as tcp/10240. They just share the number, but they aren’t the same port.

I’m referencing to a C++ tutorial

And also to the UE4 API reference