Suhas Kashyap

Set up port forwarding / http tunnel natively on VSCode

June 21, 2025 (6d ago)


I am going to assume you already know what http tunnels are for, and also ngrok.

1

Multiple ways to get to this tab, including the tower icon bottom left or good old cmd+shift+p

port forward

2

Choose your port of choice, and sign in through MS/GitHub. Very self-explanatory.

port 3000

3

Change visibility to public, and optionally change protocol to https if requied.

port public

4

This dialog box shows up the first time you access the tunnel link. And that's about that.

port public access continue dialog

And et voilĂ ! We have a free ngrok alternative right within our beloved Visual Studio Code!