title: Are there different ports for output and input?
body: <p>When sending data using UDP, a destination port is needed to be specified.</p>
  
  <p>If sending by TCP, a source port should also be specified.</p>
  
  <p>Are there different ports for input and output? E.g., if I specify port 1234, can I use it for both input and output or should I use different ports for output and input?</p>
  
  <p>EDIT:
  To clarify my question:
  - I send data from port X.
  - Someone sends data to me to port X.
  Are those two different ports or is the same one used?</p>