<!-- mobian-agent-page publisher="dailydev" canonical="https://daily.dev/posts/cloudflare-workers-and-containers-now-support-inbound-tcp-connections-and-grpc-ip5ywscgz" -->

---
title: Cloudflare Workers and Containers now support inbound...
description: Cloudflare is announcing private beta support for inbound TCP connections in Workers via a new connect(socket) handler, enabling direct socket forwarding to...
canonical: https://daily.dev/posts/cloudflare-workers-and-containers-now-support-inbound-tcp-connections-and-grpc-ip5ywscgz
twitter:card: summary_large_image
twitter:site: @dailydotdev
og:type: website
og:site_name: daily.dev
og:title: Cloudflare Workers and Containers now support inbound TCP connections and gRPC | daily.dev
og:description: Cloudflare is announcing private beta support for inbound TCP connections in Workers via a new connect(socket) handler, enabling direct socket forwarding to...
og:url: https://daily.dev/posts/cloudflare-workers-and-containers-now-support-inbound-tcp-connections-and-grpc-ip5ywscgz
og:image: https://api.daily.dev/og/posts/ip5yWscgz.png
og:image:alt: Cloudflare Workers and Containers now support inbound TCP connections and gRPC
og:image:width: 1200
og:image:height: 630
og:locale: en
---

> ## Documentation Index
> Fetch the complete documentation index at: https://daily.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# Cloudflare Workers and Containers now support inbound TCP connections and gRPC

**[Cloudflare](https://daily.dev/sources/cloudflare)** · 9 min read · 6 upvotes · 0 comments

## Summary

Cloudflare is announcing private beta support for inbound TCP connections in Workers via a new connect(socket) handler, enabling direct socket forwarding to Durable Objects and Containers. This unlocks full-duplex, bidirectional gRPC from Cloudflare Containers, allowing gRPC servers written in any language to run on Cloudflare's global network. Additionally, Workers can now serve unary and server-streaming gRPC APIs without containers by leveraging automatic gRPC-to-gRPC-web translation, using the @connectrpc/connect package. Use cases include low-latency voice AI applications, mobile app backends, and proxying existing gRPC services.

## Full article

daily.dev links to this article rather than hosting it. Read it at the original source: <https://blog.cloudflare.com/grpc-workers>

## Questions this post answers

### How do I accept an inbound TCP connection directly in a Cloudflare Worker?

Cloudflare Workers now expose a connect(socket) handler in the runtime that accepts an inbound TCP socket provided by Spectrum, Cloudflare's ingress proxy for non-HTTP traffic. The socket has readable and writable streams you can pipe to another Worker, a Durable Object, or a Container's TCP port, giving full control over the connection path. This is available in private beta.

_Teams wiring up real-time TCP or gRPC services can track Workers platform changes like this via daily.dev._

### Can I run a full gRPC server on Cloudflare without rewriting it as gRPC-web?

Yes, bidirectional gRPC servers written in any language can now run inside Cloudflare Containers, with a Worker forwarding the raw TCP socket to the container using the new connect(socket) API. This supports full-duplex streaming, unlike the lighter Worker-native gRPC-web translation path, so existing gRPC binaries and dependencies work unmodified.

_daily.dev helps engineers evaluating gRPC deployment options on Cloudflare stay current on platform capabilities._

### How does Cloudflare translate gRPC-web requests to gRPC without browsers supporting raw HTTP/2 framing?

Cloudflare converts incoming gRPC-web requests to gRPC and outgoing gRPC-web to gRPC automatically, a technique it has used inside its reverse proxy since 2020. Developers write servers and clients using the open-source @connectrpc/connect and @connectrpc/connect-web packages, letting a Worker serve unary or server-streaming gRPC APIs, or call external gRPC servers, with no client-side changes required.

_Developers deciding between gRPC-web workarounds and native protocol support can follow this kind of infrastructure shift on daily.dev._

## Similar posts on daily.dev

- [Cloudflare Workers Accept Inbound TCP, with gRPC the First Protocol on Top](https://daily.dev/posts/cloudflare-workers-accept-inbound-tcp-with-grpc-the-first-protocol-on-top-pplojcdxn) · InfoQ · 0 upvotes · 0 comments
- [How Workers VPC Services connects to your regional private networks from anywhere in the world](https://daily.dev/posts/how-workers-vpc-services-connects-to-your-regional-private-networks-from-anywhere-in-the-world-qmolfbkrl) · Cloudflare · 2 upvotes · 0 comments
- [Cloudflare Containers, rebuilt to scale agent sandboxes](https://daily.dev/posts/cloudflare-containers-rebuilt-to-scale-agent-sandboxes-4aaadwqbj) · Cloudflare · 2 upvotes · 0 comments
- [How workerd, the Cloudflare Workers runtime, is built](https://daily.dev/posts/how-workerd-the-cloudflare-workers-runtime-is-built-jripr3oyh) · Flavio Copes · 0 upvotes · 0 comments

---

Tags: [#cloudflare](https://daily.dev/tags/cloudflare), [#grpc](https://daily.dev/tags/grpc)

[View this post on daily.dev](https://daily.dev/posts/cloudflare-workers-and-containers-now-support-inbound-tcp-connections-and-grpc-ip5ywscgz)

```json
{"@context":"https://schema.org","@graph":[{"@type":"Organization","@id":"https://daily.dev/#organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180},"sameAs":["https://twitter.com/dailydotdev","https://github.com/dailydotdev","https://www.linkedin.com/company/daily-dev-ltd"]},{"@type":"WebSite","@id":"https://daily.dev/#website","url":"https://daily.dev","name":"daily.dev","publisher":{"@id":"https://daily.dev/#organization"},"potentialAction":{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https://daily.dev/search?q={search_term_string}"},"query-input":"required name=search_term_string"}}]}
{"@context":"https://schema.org","@type":"TechArticle","headline":"Cloudflare Workers and Containers now support inbound TCP connections and gRPC","url":"https://daily.dev/posts/cloudflare-workers-and-containers-now-support-inbound-tcp-connections-and-grpc-ip5ywscgz","mainEntityOfPage":{"@type":"WebPage","@id":"https://daily.dev/posts/cloudflare-workers-and-containers-now-support-inbound-tcp-connections-and-grpc-ip5ywscgz"},"datePublished":"2026-08-03T13:03:31.086Z","dateModified":"2026-09-14T06:41:14.346Z","description":"Cloudflare is announcing private beta support for inbound TCP connections in Workers via a new connect(socket) handler, enabling direct socket forwarding to...","image":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/8ceb62e9882e4d8d8e21cde988cb4515?_a=AQAEuop","thumbnailUrl":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/8ceb62e9882e4d8d8e21cde988cb4515?_a=AQAEuop","isAccessibleForFree":true,"articleSection":"Cloudflare","inLanguage":"en","publisher":{"@type":"Organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180}},"author":{"@type":"Organization","name":"Cloudflare","logo":"https://media.daily.dev/image/upload/t_logo,f_auto/v1/logos/38522e1d11354cd6b7af66f9d4316735","url":"https://daily.dev/sources/cloudflare"},"commentCount":0,"discussionUrl":"https://daily.dev/posts/cloudflare-workers-and-containers-now-support-inbound-tcp-connections-and-grpc-ip5ywscgz","interactionStatistic":[{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":6},{"@type":"InteractionCounter","interactionType":{"@type":"CommentAction"},"userInteractionCount":0}],"keywords":"cloudflare,grpc","timeRequired":"PT9M"}
{"@context":"https://schema.org","@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https://daily.dev"},{"@type":"ListItem","position":2,"name":"Cloudflare","item":"https://daily.dev/sources/cloudflare"},{"@type":"ListItem","position":3,"name":"Cloudflare Workers and Containers now support inbound TCP connections and gRPC"}]}
{"@context":"https://schema.org","@type":"FAQPage","@id":"https://daily.dev/posts/cloudflare-workers-and-containers-now-support-inbound-tcp-connections-and-grpc-ip5ywscgz#faq","mainEntity":[{"@type":"Question","name":"How do I accept an inbound TCP connection directly in a Cloudflare Worker?","acceptedAnswer":{"@type":"Answer","text":"Cloudflare Workers now expose a connect(socket) handler in the runtime that accepts an inbound TCP socket provided by Spectrum, Cloudflare's ingress proxy for non-HTTP traffic. The socket has readable and writable streams you can pipe to another Worker, a Durable Object, or a Container's TCP port, giving full control over the connection path. This is available in private beta. Teams wiring up real-time TCP or gRPC services can track Workers platform changes like this via daily.dev."}},{"@type":"Question","name":"Can I run a full gRPC server on Cloudflare without rewriting it as gRPC-web?","acceptedAnswer":{"@type":"Answer","text":"Yes, bidirectional gRPC servers written in any language can now run inside Cloudflare Containers, with a Worker forwarding the raw TCP socket to the container using the new connect(socket) API. This supports full-duplex streaming, unlike the lighter Worker-native gRPC-web translation path, so existing gRPC binaries and dependencies work unmodified. daily.dev helps engineers evaluating gRPC deployment options on Cloudflare stay current on platform capabilities."}},{"@type":"Question","name":"How does Cloudflare translate gRPC-web requests to gRPC without browsers supporting raw HTTP/2 framing?","acceptedAnswer":{"@type":"Answer","text":"Cloudflare converts incoming gRPC-web requests to gRPC and outgoing gRPC-web to gRPC automatically, a technique it has used inside its reverse proxy since 2020. Developers write servers and clients using the open-source @connectrpc/connect and @connectrpc/connect-web packages, letting a Worker serve unary or server-streaming gRPC APIs, or call external gRPC servers, with no client-side changes required. Developers deciding between gRPC-web workarounds and native protocol support can follow this kind of infrastructure shift on daily.dev."}}]}
```

