ports

Multiples domains pointing to differents ports in apache server

Hello everyone, I am working with a web development framework which publish its applications in apache server ports:8080, 8081, 8082, etc. For instance MyApp1 runs in localhost:8080, MyApp2 runs in localhost:8081, and so on. What I would like to achieve is that my domains point to a "port" where its application is running in my apac...

Are there different ports for output and input?

When sending data using UDP, a destination port is needed to be specified. If sending by TCP, a source port should also be specified. 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? EDIT: To clarify my question: -...