3

I have created AWS Lightsail instance and attached a public IP address. So Curranty machine has 2 IPs, public and private.

the command ifconfig shows only private IP and nowhere in public. Hence I am unable to bind my golang based application to public IP address.

Am I missing anything here? I have spend 1 hour on chasing this and could not see any article that could relate to this, need help.

Ankur
  • 87
  • 7

1 Answers1

4

AWS provides static IPs via NAT. The static IP is part of the AWS network, and traffic to that IP will be routed to the private IP of your instance within the AWS network.

Mark B
  • 183,023
  • 24
  • 297
  • 295
  • Hi @Mark Looks interesting.... the architecture for public ip (or elastic ip as well). I would love love to know how traffic goes into vms deployed in public subnets using public/elastic ip. Already tried to googling, but couldn't found useful blogs. Please help if there is any blog. – Ashish Kumar Nov 29 '22 at 14:14