VS Code Server internal api calls?

I have a question about vscode server. If I start a simple node express server I can access it using rest from outside the container by using postman if I have added the port to the container.
But when I try to use the vscode rest-client addon from inside the container and use “GET http://localhost:3002/api/persons” I get no response. What am I missing