UDP in Synapse. How to set Local Port? lazarus / 38-Networking and Web Programming ---------------------------------------------------------------------- undeadorc · 2012-03-26 14:10 How I can set specified local port for UDP client. By default random port is used. ---------------------------------------------------------------------- User137 · 2012-03-26 14:31 Isn't that how UDP should work, using random port? Only server is ever needed to have a specific port. ---------------------------------------------------------------------- undeadorc · 2012-03-26 14:45 Then how I can receive server response if server send it to random client port? ---------------------------------------------------------------------- ludob · 2012-03-26 15:00 You receive the server reply on the same socket as the one used to send. Sockets are bi-directional.