What method should I use to hide the IP address for TCP connections?

Open TCP Server with Java and connect as Client. (TCP)
(Not a web server)

Only the Cloudflare IP is exposed to the client.

To get the client IP directly without parsing the first packet like Proxy V1, V2 on the server…

Which product should I use?

Assuming you’re not in control of the clients, you would need to use spectrum and it would need to be on an Enterprise plan to allow arbitrary TCP applications:

Restoring the IP in spectrum would need the proxy protocol configured on your TCP service:

If you were in control of the clients, you could use Zero Trust:

In that case, if you need the client IP to enforce a security policy, you can do all of that on the edge with zero trust.

2 Likes

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.