Ends in
00
days
00
hrs
00
mins
00
secs
SHOP NOW

💝 Valentine's Sale! Get 30% OFF Any Reviewer. Use coupon code: PASSION-4-CLOUD & 10% OFF Store Credits/Gift Cards

Find answers, ask questions, and connect with our
community around the world.

Home Forums AWS AWS Certified Solutions Architect Associate Ephemeral ports Reply To: Ephemeral ports

  • Carlo-TutorialsDojo

    Member
    April 5, 2021 at 11:24 am

    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

Skip to content