PDA

View Full Version : Why don't browsers collide traffic?


Fenris
2008.06.22, 09:58 AM
Something hit me a minute ago, and I'd like to clear it out for my own sake. :)

Assume that I have two applications running on one machine, using the same network port. Will traffic sent to that port from outside be routed to both applications? If so, how come Firefox and Safari can co-exist nicely? And if not, why do we not all run games on port 80 to avoid NAT punch-through issues?

I'm sure I'm missing something here. ;)

DoG
2008.06.22, 11:05 AM
Port 80 is the REMOTE port the browsers are accessing. When they open a connection, the remote server is told which port to use to respond. The browser simply requests an unused port from the OS, and uses that for communication. See http://www.camden411.com/tcpipfaq/ports.html

Fenris
2008.06.22, 12:01 PM
Makes a boatload of sense. That actually cleared up a lot of misconceptions I've had on networking: I thought the port mapping was symmetrical. Thanks for the link, too!