Please help me with TCP
Hi, is there any way I can implement TCP communication via Cloudflare proxy? What special factors do I need? Right now I ran nginx on the server, but I can't communicate with the server. What should I do about it?
8 Replies
Like arbitrary TCP or TCP from functions/workers?
Yes
Please give me help
That doesn't narrow down what you are looking for. If your DNS records are proxied then Cloudflare only supports HTTP/HTTPS unless you pay for spectrum
For workers you can use https://developers.cloudflare.com/workers/runtime-apis/tcp-sockets/
TCP sockets · Cloudflare Workers docs
Use the
connect()
API to create outbound TCP connections from Workers.Well, is there any other way I can do it without spectrum?
You can use cloudflare tunnels but requires zero trust, there is a free plan, and both the server and client to have it installed
Well, in my case, the client side shouldn't require any specific platforms for TCP communication, so I thought that zero trust was not what I was looking for. I think spectrum would be a better choice for me. Thank you for your help, @Cyb3r-Jok3
Just be careful of the pricing with spectrum as with self service it is $1/GB