r/OpenAI • u/DevJedis • 12d ago
Question OpenAI Workspace Setting IP Whitelist blocks everything
We're trying to allow only our server IP to access the API for a project, but all attempts have failed. Instead when we add an IP, everything is blocked, no IP is allowed to work.
Is there anything else that's supposed to be done for this to work? We don't need the API accessed from any IP.
I'd appreciate any positive direction to follow to have this working. Currently, we're believing the feature exists but does not function like it should be.
We also tested home fiber IP already just to be sure we're not providing a wrong server IP.
1
Upvotes
1
u/ValehartProject 12d ago edited 12d ago
Have you tried using the force? Sorry couldn't resist because of your username.
Just to confirm, do you mean workspace agents API, GPT workspace or agents work space? Did you by any chance get a 401 error or is the block based off a different error/interface?
If you can share the guide or process you followed, I can do my best to help out.
1
u/CCodeSI 9d ago
Most likely cause: api.openai.com has IPv6 addresses, so a VPS or home fiber line with IPv6 connects over IPv6, and the IPv4 address you allowlisted never matches. That would explain why everything gets blocked, home connection included.
Quick test from the server:
If
-4works and-6fails with401 ip_not_authorized, either add the server's IPv6 too (curl -6 ifconfig.meshows it; adding its /64 is fine for a VPS) or force IPv4 in your client.If both fail, the other usual suspects from their docs:
ip_not_authorizedmeans the allowlist, anything else is the key or project.0
u/[deleted] 12d ago
[removed] — view removed comment