How does the server handle multiple request, does it open different ports or just use one port like 8080 or else?
Like google, www.google.com; when I access google.com, which port google will be open for my tcp connection?
When we type "www.google.com" as the url, the DNS server only tell us the IP address without the port number.
when I access my own tomcat server, I type like this: http:/ /localhost:8080/...;See, there is a port number in there! That makes me confused.
Asked
Active
Viewed 312 times
0
-
1port 80 is the default port if none is specified, for HTTP anyway. – Paul Collingwood Aug 06 '14 at 10:21
-
Search "ephemeral port". – CodeCaster Aug 06 '14 at 10:22
1 Answers
0
How does the server handle multiple request, does it open different ports or just use one port like 8080
It uses one port.
Like google, www.google.com; when I access google.com, which port google will be open for my tcp connection?
Port 80, or 443 for HTTPS.

user207421
- 305,947
- 44
- 307
- 483