I have deployed an Angular app and a Java REST-API on my ec2-instance.
My angular app is hitting the Java REST-API if I use a public IP, but when I provide a private IP of my instance, it throws an connection time out error.
So is there any way I can call my Java REST-API using private IP from within my Angular app. I have setup a vpc and the instance is lying inside the vpc.