RunVS code app does not recognize umbrel link

Hi there, I am trying to run a python script on the Run VS code app on my umbrel.
In one part of the code I am requesting the latest transactions using the mempool API with the “requests” library on python but it is giving me an error.
Below the code:
latestTx = requests.get(‘http://umbrel.local:3006/api/mempool/recent’)

It works if I change it with the equivalent link below:
latestTx = requests.get(‘’)

The reason I want to use the first link is because I want to use the data directly from my umbrel.
I also wanted to add that I am currently running the code on my own laptop and it runs fine.

Using the node IP instead of “umbrel.local” works here.

Thanks it works!!