An Azure service that provides a general-purpose, serverless container platform.
Hi @Nathan Baker ,
Thanks for reaching out to Microsoft Q&A.
Ingress (listening) in Container Apps only supports HTTP/HTTPS and TCP transports, UDP endpoints aren’t supported for inbound traffic.
Egress (outbound) does allow UDP packets but because ACA uses dynamic outbound IPs and ephemeral port mappings, return UDP traffic can easily get dropped if your NAT/NSG setup isn’t preserving the mapping long enough.
Here’s what you can try:
- Integrate your Container Apps environment into a custom VNet
- Follow the docs here: https://learn.microsoft.com/en-us/azure/container-apps/vnet-custom
- This gives you control over routing, NSGs, etc.
- Deploy a NAT Gateway on that VNet
- That gives you a stable outbound IP and handles UDP NAT timeouts more gracefully
- Docs: https://learn.microsoft.com/en-us/azure/virtual-network/ip-services/configure-public-ip-nat-gateway
- Open NSG rules for the ephemeral UDP port range
- Make sure inbound return packets aren’t blocked by your network security rules
- (If you need to host a UDP listener) consider using Azure Container Instances or a small VM instead
- ACI and VMs let you bind to UDP ports publicly
If after VNet + NAT you still see timeouts, double-check:
- Which outbound IP your app is actually using (logs will show it)
- That the game server allow-lists that IP + the full range of ephemeral ports (default UDP 49152–65535)
Hope this helps!
If the resolution was helpful, kindly take a moment to click on and click on Yes for was this answer helpful. And, if you have any further query do let us know.