Ankur
Ankur

Reputation: 127

AWS Lightsail - Static IP not visible in ifconfig

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.

Upvotes: 3

Views: 903

Answers (1)

Mark B
Mark B

Reputation: 200988

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.

Upvotes: 4

Related Questions