A non-HTTP TCP 9000 service runs in two AZs in one Region. A partner can allowlist two stable public IPv4 addresses and implement connection retries to both endpoints. A single address shared by all AZs or a multi-Region entry point is not required.
Two subnets and one suitable Elastic IP per subnet are available for an internet-facing IPv4 NLB. Each AZ has healthy targets; routes, SGs, NACLs, and health-check connectivity are prepared. Test new connections through the surviving endpoint during failure, without requiring migration of existing TCP connections.
Which configuration provides the fixed addresses and TCP forwarding?
Assign separate Elastic IPs to internet-facing NLB AZ subnet mappings and expose healthy targets through a TCP listener.
Detailed explanation
Internal NLB addresses are private. The required public IPv4 internet entry is not provided by an internal NLB alone.
NLB provides a static IPv4 address per enabled AZ; internet-facing subnet mappings can use selected Elastic IPs. Allowlist both and verify listener, healthy targets, and application traffic.
NLB subnet mappings use separate Elastic IPs, rather than sharing the same allocation simultaneously. Two allowlisted addresses are acceptable here, so provide one per AZ.
An ALB listener handles HTTP/HTTPS rather than this arbitrary TCP protocol. A snapshot of ALB DNS answers is also not a permanent fixed-IP contract.
Check official documentation
Compare the following points with the official documentation.
On an approved test NLB, verify Scheme=internet-facing, IpAddressType=ipv4, two subnet mappings with distinct AllocationId values, TCP 9000 listener, and target health. Test application traffic to both IPs from a partner-like environment; simulate one failure, reconnect to the surviving IP, and restore the test.
Official references
What to confirm
TCP application traffic succeeds through distinct fixed public IPv4 addresses. If one becomes unavailable, the partner reconnects to the remaining endpoint. Do not infer that one IP moves between AZs or established TCP connections migrate without interruption.
Key points
- Network Load Balancer
- Elastic IP
- Subnet mapping
Notes
- Environment: Official NLB documentation and an approved two-AZ TCP test service with recovery procedures
- Reviewed against the linked AWS documentation on 2026-10-15.
Foundation review
Choose transport and public scheme
Use an NLB TCP listener for this non-HTTP protocol. Do not substitute ALB HTTP/HTTPS handling. Internet clients require an internet-facing entry, unlike an internal NLB private address.
Provide a fixed IPv4 per AZ
Associate a separate Elastic IP with each enabled AZ subnet. This scenario accepts two allowlisted addresses; it does not require one common address across all AZs or Regions.
Verify health and client behavior
Fixed addresses alone do not prove application reachability. Check targets, routes, permissions, and actual TCP responses. Test new connections to the surviving IP after one endpoint fails, without promising automatic migration or zero loss for established connections.