I have a service host on Amazon ECS. It also have load balancer and CloudFront in front of my ECS, below picture is their architecture:
When my service is running, it will need it's own public IP address to record. And I want get this information without third party library or website. I dig into the fields in HTTP header, I found this in my chrome (see picture below), but I can't access this information by the fields in the header.
My questions is:
- Can I get public IP of server without third party library?
(This seems impossible without third party library due to following asked questions)
Get public/external IP address?
Discovering public IP programmatically
How can I get the public IP using python2.7?
- Can I get the field like I saw in chrome in python?