Sending a request to a fastapi program in a VM using uvicorn

I am currently watching the FastAPI tutorial published on freeCodeCamp’s youtube channel. Following the tutorial I am supposed to SSH into a VM offered by a cloud service. I wanted to try it using my own VM instead, so I created one using VirtualBox and SSHed into it. I then started uvicorn with the --host option. How do I proceed so that I can send a request from my host machine to the API on my VM? Sorry if it is a stupid question, i’m new to programming.

This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.