Closed
Description
I would like to know if there is a way to create a new client, by specifying a specific UDP source port like how we do with the net package.
server, _ := net.ResolveUDPAddr("udp", "google.com:80")
client, _ := net.ResolveUDPAddr("udp", ":50000")
conn, err := net.DialUDP("tcp", client, server)
Right now, the API does not seem to provide a way to specify the UDP port to send requests.