Workers VPC - VPC Networks and Cloudflare Mesh support now in public beta
Key Points
- VPC network bindings in public beta
- Bind to Cloudflare Mesh via cf1:network
- Reach private services via Tunnel or Mesh
Summary
Cloudflare launched a public beta for VPC Network bindings for Workers. VPC Network bindings let a Worker reach any service inside your private network without pre-registering hosts or ports. This complements VPC Service bindings (which are scoped to a specific host and port). You can bind to a Cloudflare Tunnel via tunnel_id or bind to Cloudflare Mesh using network_id = "cf1:network" to reach Mesh nodes, client devices, or subnet routes.
Key Points
- VPC Network bindings provide network-level access from Workers to private IPs and ports without per-host registration.
- Bind to a Tunnel (
tunnel_id) or to Cloudflare Mesh (network_id = "cf1:network"). Useremote = truefor remote access when required. - Configure
vpc_networksin wrangler (TOML/JSONC) and callenv.<BINDING>.fetch('http://<ip>:<port>/...')at runtime to route traffic through the network.
Example
[[vpc_networks]]
binding = "MESH"
network_id = "cf1:network"
remote = true
// JavaScript runtime
const response = await env.MESH.fetch('http://10.0.1.50:8080/api/data');
Docs
See the Cloudflare documentation "VPC Networks and Connect Workers to Cloudflare Mesh" for configuration options and additional examples.