Skip to content

Commit 4e42290

Browse files
kyouheicfharshil1712
authored andcommitted
[Workers] TCP Workers Outbound IP (#17231)
PCX-13416
1 parent b109b37 commit 4e42290

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/content/docs/workers/runtime-apis/tcp-sockets.mdx

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,11 @@ Many application-layer protocols are built on top of the Transmission Control Pr
1515
Connecting to a PostgreSQL database? You should use [Hyperdrive](/hyperdrive/), which provides the `connect()` API with built-in connection pooling and query caching.
1616
:::
1717

18+
:::note
19+
20+
TCP Workers outbound connections are sourced from a prefix that is not part of [list of IP ranges](https://www.cloudflare.com/ips/).
21+
:::
22+
1823
## `connect()`
1924

2025
The `connect()` function returns a TCP socket, with both a [readable](/workers/runtime-apis/streams/readablestream/) and [writable](/workers/runtime-apis/streams/writablestream/) stream of data. This allows you to read and write data on an ongoing basis, as long as the connection remains open.

0 commit comments

Comments
 (0)