Back to news
security Priority 4/5 8/4/2026, 11:05:15 AM

Cloudflare Workers and Containers Add Support for Inbound TCP and gRPC Connections

Cloudflare Workers and Containers Add Support for Inbound TCP and gRPC Connections

Cloudflare has expanded the capabilities of its edge development platform by introducing support for inbound TCP connections and gRPC traffic. This update allows Cloudflare Workers and Containers to receive direct socket connections via Cloudflare Spectrum, routing them seamlessly to Durable Objects and back-end services. Developers can now implement real-time, bidirectional communication protocols without needing complex intermediary proxy setups.

Related tools

Recommended tools for this topic

These picks prioritize high-intent tools relevant to this topic. Some links may include partner or affiliate tracking.

#cloud#security#official#agents week#cloudflare workers

Comparison

AspectBefore / AlternativeAfter / This
Protocol supportInbound connections were restricted to HTTP and HTTPS protocolsSupports direct inbound TCP socket connections and native gRPC
Traffic routingRequired manual conversion or proxying of non-HTTP traffic at the edgeDirect socket forwarding to Durable Objects and Containers via Cloudflare Spectrum
Client compatibilityClients were forced to use HTTP-based APIs or gRPC-Web workaroundsFull-duplex gRPC connections and automatic gRPC-to-gRPC-web translation

Action Checklist

  1. Enable Cloudflare Spectrum for your target hostnames to accept inbound TCP traffic Verify that your plan has Spectrum enabled before configuring routes
  2. Configure routing rules to forward inbound TCP sockets directly to Durable Objects or Containers Update wrangler.toml or your deployment configuration to handle incoming raw socket streams
  3. Implement gRPC handlers inside your Cloudflare Workers to process bidirectional RPC calls Test client connections to verify that automatic translation behaves as expected with your schemas

Source: Cloudflare Blog

This page summarizes the original source. Check the source for full details.

Related