I was wondering, why must I bind a udp socket. If I remember correctly with udp sockets you specify the ip address and port when you sendto messages and with recvfrom you have these details stored in a varibale of struct sockaddr type.
So if I don't bind the socket of the server does this mean that it will listen to a random port or not at all?
Also in the client side, you just create a socket and then sendto a message with the details of the server (IP, port). Does the socket get bind(ed) automatically by the system to a random port and uses that from then on?