Whenever I create a new amazon EC2 instance(linux or windows), in addition to public IP there is also private IP assigned to it.
We use public IP to access resources on that instance. Resources like tomcat etc...
What is the exact purpose of private IP provided for that instance?
The primary reason to use primary IP of a EC2 instance is to route the traffic internally within your subnet or VPC. If you have two instances instA and instB in the same VPC: