You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

Windows环境下Postman无法连接Docker容器问题求助

问题描述

环境信息

  • Windows 10已安装全部最新更新,仅启用默认Windows Defender,未安装商用杀毒软件、恶意软件防护工具或第三方防火墙
  • Visual Studio 2022、Docker Desktop for Windows、Postman均已更新至最新版本

项目与容器状态

启用Docker支持的ASP.NET Core Web API项目,启动调试后,Docker Desktop显示容器已正常启动,端口映射配置如下:

49155:443
49156:80

网络连通性验证

通过Windows PowerShell执行以下命令测试网络连通性,结果显示成功:

Test-NetConnection localhost -Port 49155

输出结果:

ComputerName     : localhost
RemoteAddress    : ::1
RemotePort       : 49155
InterfaceAlias   : Loopback Pseudo-Interface 1
SourceAddress    : ::1
TcpTestSucceeded : True

Postman请求异常

使用Postman发送请求时无法建立连接,请求详情及报错信息如下:

GET https://localhost:49155/api/stocks/get
Error: Client network socket disconnected before secure TLS connection was established

代理与工具设置

  • 系统代理:已关闭,路径为 Start > Internet Options > Connections > LAN Settings > proxy server unchecked
  • Postman配置:所有代理复选框均已取消勾选,且已关闭SSL Certificate Verification

内容的提问来源于stack exchange,提问作者BaltoStar

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.08.06 08:35:24