04. App Setup
App Setup
ND9991 C04 L03 A04 App Setup
More on Ports
Ports are not usually just randomly assigned numbers. Many ports are used for specific activities in networking. Port 80 is the commonly used port number for HTTP requests, which is why we are exposing that port to the host computer - it's where the Flask app is listening for requests. You may also see other ports, such as port 8080, used with different applications. What this means is that the server is listening on that port, so a request to that server must also append the "special" port number to an HTTP request (such as example.website.com:8080), so that the sending client uses port 8080, instead of the normal HTTP port 80.
You can see some additional common ports here.
For more information specific to Docker ports, see this post.
Networking Ports
QUIZ QUESTION::
Match up the below network services to the correct port numbers. Not all options are used.
ANSWER CHOICES:
|
Service |
Port number |
|---|---|
80 |
|
443 |
|
110 |
|
69 |
|
53 |
|
22 |
|
23 |
SOLUTION:
|
Service |
Port number |
|---|---|
|
80 |
|
|
110 |
|
|
53 |
|
|
22 |