Practical skills. Personal guidance.
Call +91 98257 57737WhatsApp ↗
Networking

Public and private IP addresses in AWS

Private and public IP addresses serve different connectivity needs. An address alone does not create a working network path or open an application port.

Watch the lesson
Free lesson. Learn at your own pace.Open on YouTube ↗

Hi, I’m Bhavesh Atara from CloudFolks HUB. A server has an address, but who can actually reach it? Let us separate addressing from the network path so that this becomes clear.

Decide who needs to connect

Imagine a web server talking to a database. Visitors need access to the website, but that does not mean they should connect directly to the database. I would draw the connections first and assign addressing around those needs.

Check the complete path

For internet connectivity, check addressing, routes, gateways and access controls together. A public IP does not bypass security groups. Opening a port cannot fix a missing route. Treat each connection as a chain of requirements.

Plan address changes

Automatically assigned public IPv4 addresses can change during the instance lifecycle. Understand the behaviour before depending on an address in application configuration. Prefer suitable DNS or managed endpoints, and include current public IPv4 charges in your lab estimate.

Put the idea to work

Try it yourself

Draw a browser, web server and database. Mark which component needs public reachability and how the internal connection works.

A common question

Does a public IP expose every port?

No. Routing, access rules and a listening service are also required for a successful connection.

References & video notes

Use the video to follow the topic with me. Console screens and older offers can change, so check the current AWS documentation before performing a lab.

Keep learning

All articles →
Build practical skills

Add guidance to your learning.

Explore the CloudFolks AWS learning path and see what is included.

Explore AWS course →