Force Workers to use a single IP for all requests in that session

You can fetch things from a worker. However, it uses a different IP each time.
console.log('ip', await (await fetch('https://myip.wtf/text')));
console.log('ip', await (await fetch('https://myip.wtf/text')));
console.log('ip', await (await fetch('https://myip.wtf/text')));
console.log('ip', await (await fetch('https://myip.wtf/text')));
console.log('ip', await (await fetch('https://myip.wtf/text')));
console.log('ip', await (await fetch('https://myip.wtf/text')));
These are all different cloudflare IPs in the same general zone. Any way to force it to use one IP, at least for all fetches?
4 Replies
oftheplague
oftheplagueOP7d ago
I found a forum thread from a couple years ago (<#1142700811290411120>). Seems it wasn't possible then. What about now?
Hello, I’m Allie!
You can use Aegis to use BYOIP for Egress
Cloudflare Docs
Cloudflare Aegis
Cloudflare Aegis provides dedicated egress IPs (from Cloudflare to your origin) for your layer 7 WAF and CDN services, as well as Spectrum. The egress IPs are reserved exclusively for your account so that you can increase your origin security by only allowing traffic from a small list of IP addresses.
Hello, I’m Allie!
Enterprise+
oftheplague
oftheplagueOP6d ago
I'm certanly not enterprise at any form, although I'm willing to pay in small levels for just this I also don't need a dedicated IP at any form, I just need my workers to have the same IP for consecutive requests

Did you find this page helpful?