Hi. I have a problem with the tcp and udp synchronization.
On the server it accepted the tcp connection with the: SDLNet_TCP_Accept(); But now i need to know how to get the remote address of the udp_socket of the client to use it to send upd packets.
I already tried to use(on the server) the function SDLNet_TCP_GetPeerAddress(); to get it. The ip was right, but the port was't. I tried the SDLNet_UDP_GetPeerAddress(); (on the client) but it just gives the local address.
But iam only using the SDL_net. And i want to know the port without sending any udp packets.
I need to get the remote udp (on the client) and send him with tcp packet for the server.
Or i have to know i way to get the remote port (on the server) thought the tcp conection.