Cách public localhost để test trên nhiều thiết bị

Yêu cầu: Đã login github account vào visual studio code Run môi trường local (port bất kỳ)

Command + Shift + P: Nhập Forward port hoặc chọn tab PORTS ở trong phần panel của visual

Click button Forward a port Nhập port của local vào ô Port => Enter => Chờ 3s để Vscode generate ra 1 forwarded address

Đổi Visibility từ Private => Public (private thì sẽ check authen bằng github đã login vào visual) Copy Forwarded Address và test thử

Xem thêm tại: https://code.visualstudio.com/docs/debugtest/port-forwarding

Ngoài ra hãy tìm hiểu thêm:

Dùng Cloudflare Tunnels đi, public internet luôn

Comments

Leave a Reply

Your email address will not be published. Required fields are marked *