Home › Forums › AWS › AWS Certified Solutions Architect Associate › Ephemeral ports › Reply To: Ephemeral ports
-
Hello Tomminno,
Thanks for posting your question.
“Why one of the right answers is the one with ephemeral port range 32768 – 65535?
The question ask for “any source”. With that ephemeral port range applied a Windows client or Lambda could face connectivity issue.”
>> First off, the question requires the application (on the EC2 instance) to be accessible via HTTPS (port 443), so Windows RDP and Lambda is not of concern
Second, the ephemeral ports are used on the outbound rule and not on the inbound. An ephemeral port is a temporary port automatically assigned by the TCP/IP stack of a computer to communicate to commonly used ports (e.g., 22, 80, 443)
Say I have a server listening on port 443. If the server receives a request from a client, the server will open a new ephemeral port to respond to the client’s request. The server does not respond over the same port (443). After the communication is ended, the ephemeral port becomes available for new connections, hence the term ephemeral or temporary.
The same principle applies when you connect to an SSH server or an RDP server.
I hope this answers your question.
Regards,
Carlo @ Tutorials Dojo-
This reply was modified 3 years, 10 months ago by
Carlo-TutorialsDojo.
-
This reply was modified 3 years, 10 months ago by