内网穿透 - devtunnel

how?





NAT:


result:

实际:

PS C:\Users\***> winget install Microsoft.devtunnel
Found devtunnel [Microsoft.devtunnel] Version 1.0.1972+07cc55c789
This application is licensed to you by its owner.
Microsoft is not responsible for, nor does it grant any licenses to, third-party packages.
Downloading https://tunnelsassetsprod.blob.core.windows.net/cli/1.0.1972+07cc55c789/devtunnel.exe
██████████████████████████████ 22.6 MB / 22.6 MB
Successfully verified installer hash
Starting package install...
Path environment variable modified; restart your shell to use the new value.
Command line alias added: "devtunnel"
Successfully installed
PS C:\Users\***>
PS C:\Users\****> devtunnel user login
Welcome to dev tunnels!
CLI version: 1.0.1972+07cc55c789
By using the software, you agree to
- the dev tunnels License Terms: https://aka.ms/devtunnels/tos
- the Microsoft Privacy Statement: https://privacy.microsoft.com/privacystatement
Report issues on GitHub: https://aka.ms/devtunnels/issues
Use 'devtunnel --help' to see available commands or visit: https://aka.ms/devtunnels/docs
Logged in as ****@**.com using Microsoft.
PS C:\Users\****> devtunnel create
Tunnel ID : giant-ant-rv60d3h.jpe1
Description :
Labels :
Access control : {}
Host connections : 0
Client connections : 0
Current upload rate : 0 MB/s (limit: 20 MB/s)
Current download rate : 0 MB/s (limit: 20 MB/s)
Tunnel Expiration : 30 days
Set default tunnel to giant-ant-rv60d3h.jpe1.
PS C:\Users\****> devtunnel host -p 7256 --protocol https --allow-anonymous
Connection to host tunnel relay restored.
Hosting port: 7256
Connect via browser: https://79dxvk0t-7256.jpe1.devtunnels.ms
Inspect network activity: https://79dxvk0t-7256-inspect.jpe1.devtunnels.ms
Ready to accept connections for tunnel: puzzled-chair-cw8w1r9.jpe1
access url: https://79dxvk0t-7256.jpe1.devtunnels.ms from command output
issue fix:
1. 访问 https://rj1pk2r0-8300.jpe1.devtunnels.ms,跳转到localhost 地址
service 确保 appsettings.json 中

浙公网安备 33010602011771号