Connecting to external API through host VPN

HI I’ve been using devilbox for a couple of years now and it works like a charm. However I ran in to the following conundrum. I have an application set up to use devilbox but it needs to consume a resource that is behind my host OS (windows) through a VPN.

I’m not entirely sure what extra information is needed to help me out with this. At the moment I can use curl through PHP on my host to connect to the API and get data, however when I try the same curl request from within the container, I get “curl: (7) Failed to connect to X: Connection refused”

Given I can correctly connect when I originate from my host OS, it’s not server related.

Any pointers on this would be greatly appreciated.

Might be that your Docker network is not going through the VPN (as your host network does).