【发布时间】:2022-02-26 14:22:35
【问题描述】:
我有一个带有颤振的应用程序。我必须连接到服务器我的 ip 就像 =https://91.#.#.#:5000/api 当我将数据发布到服务器时,我得到 flutter/lib/ui/ui_dart_state.cc(186)] 未处理的异常:SocketException:操作系统错误:连接被拒绝,errno = 111,地址 = 服务器 ip,端口 = 33450 我的代码 var url = Uri.parse(AddressController.text); http.Response 响应 = 等待 http.post(url, body: {});
【问题讨论】: