I often need to expose some service running locally on my computer to the public internet for some reason or another. Demoing a website, exposing an API, giving someone access to download some local files, stuff like that.
The popular solution for this is tools like ngrok. You download their CLI application to your computer, specify a port, and your local service is available at a URL like https://a78f837.ngrok.io/.
The downside of this is that there are limits for the free versions of these services. You’ll get limits on session duration, get a random subdomain every time, have network speed limits, or other stuff. You can pay for them as well to make most of these limits go away, of course, and that’s what I used to do with an alternative service called <tunnelto.dev>.