V2EX = way to explore
V2EX 是一个关于分享和探索的地方
Sign Up Now
For Existing Member  Sign In
• 请不要在回答技术问题时复制粘贴 AI 生成的内容
sniperking1234
V2EX  ›  程序员

Cline 在 vscode 中进行 remote 开发,当开发机无法连接外网的时候,不能连接到大模型的 API,有无解决方法?

  •  
  •   sniperking1234 · Apr 24, 2025 · 2031 views
    This topic created in 376 days ago, the information mentioned may be changed or developed.

    大家有没有遇到这个问题,能否用 PC 端的网络访问大模型的 API 呢

    4 replies    2025-04-25 12:22:20 +08:00
    lee88688
        1
    lee88688  
       Apr 24, 2025
    远程机器代理转发到本机,然后用本机的网络请求,感觉这个方案可行也。
    sniperking1234
        2
    sniperking1234  
    OP
       Apr 24, 2025
    @lee88688 SSH 隧道这种方案吗
    kneo
        3
    kneo  
       Apr 25, 2025
    用 frp 转发下。应该是远程开发机上运行 frps ,你自己的桌面机运行 frpc 。
    lee88688
        4
    lee88688  
       Apr 25, 2025
    @sniperking1234 对啊,本来远程连接借用 ssh ,自己再往外创建一个命令用于远程端口转发到本地配置一下 proxy 。不过不是很清楚 vscode 上面远程开发的 proxy 是怎么工作的。
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   2694 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 44ms · UTC 10:14 · PVG 18:14 · LAX 03:14 · JFK 06:14
    ♥ Do have faith in what you're doing.