So in my understanding in a client-server model, a client binds an ephemeral port number to an IP address and sends it out over the internet to find the server. This is where I start to get confused. let's say the server is a web server so it is listening on port 80 or 443. One how does the request know how to go to port 80 and why did we even have to use an ephemeral port? Two where does TCP come in and is that similar to the socket that both sides created?
No comments:
Post a Comment