为什么 postman 或 httpclient 无法调用 API? [英] why The API could not be invoked by postman or httpclient?

查看:26
本文介绍了为什么 postman 或 httpclient 无法调用 API?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

API 的 IP 地址是 172.17.0.1.因此,我在postman中调用它,浏览器或邮递员如何找到ip地址?我认为这就是 postman 或 browse 无法调用 AM gererated API 的原因

The API's Ip address is 172.17.0.1. Thus, I invoke it in postman,how can The browse or postman find the ip address? and I think it is the reason why postman or browse could not invoke the API gererated by AM

推荐答案

根据我们的聊天记录,如果您需要外部方访问您的 API,您应该使用您的公共 IP 而不是私有 IP.

As per the chat we had, you should use your public IP instead of private one if you need external parties to access your APIs.

这篇关于为什么 postman 或 httpclient 无法调用 API?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆