title: Python - set source port number with sockets
body: <p>I'd like to send a specific UDP broadcast packet. Unfortunately, I need to send the UDP packets from a very specific port.</p>
  <p>Let's say I broadcast via UDP &quot;BLABLAH&quot;. The server will only answer if my incoming packet source port was 1444; if not, then the packet is discarded.</p>
  <p>My broadcast socket setup looks like this:</p>
  <pre><code>s = socket(AF_INET,SOCK_DGRAM)
  
  s.setsockopt(SOL_SOCKET, SO_BROADCAST, 1)
  </code></pre>
  <p>How can I then set the source port in Python?</p>