An EC2 instance is only aware of its private VPC address; the internet gateway provides one-to-one NAT so outbound traffic carries the instance's public IPv4 or Elastic IP address.

Checked 2026-10-14

Your instance is only aware of the private (internal) IP address space defined within the VPC and subnet.
Vendor
Amazon Web Services
Product
Amazon VPC
Subsystem
nat
Deployment
iaas
Region
not restricted
Release range
current as of 2026-10-14
Checked
2026-10-14

Sources

Cite this note

APA

WarmTransfer. (2026, October 14). Running a virtual SBC in Azure or AWS: source note cloud-hosted-sbc-aws-instance-sees-private-ip. WarmTransfer. https://warmtransfer.net/knowledge/claims/cloud-hosted-sbc-aws-instance-sees-private-ip

BibTeX

@misc{warmtransfer-claim-cloud-hosted-sbc-aws-instance-sees-private-ip,
  title  = {Running a virtual SBC in Azure or AWS: source note cloud-hosted-sbc-aws-instance-sees-private-ip},
  author = {{WarmTransfer}},
  year   = {2026},
  url    = {https://warmtransfer.net/knowledge/claims/cloud-hosted-sbc-aws-instance-sees-private-ip},
  note   = {Source note cloud-hosted-sbc-aws-instance-sees-private-ip, checked 2026-10-14}
}

Read in context