outside of localhost can not access API
See original GitHub issue📚 Documentation
When I use the example image_classifier。The API can be accessed locally,other devices can not access API。
Non local:{   "code": 404,   "type": "ModelNotFoundException",   "message": "Model not found: densenet161" }
local:{   "tabby": 0.4666191339492798,   "tiger_cat": 0.46449020504951477,   "Egyptian_cat": 0.06614047288894653,   "lynx": 0.0012924382463097572,   "plastic_bag": 0.00022909714607521892 }
Issue Analytics
- State:
- Created 2 years ago
- Comments:7 (1 by maintainers)
 Top Results From Across the Web
Top Results From Across the Web
How to access API outside of localhost? · Issue #1152 - GitHub
Hi! I have Wireguard in my machine and have a few other devices connected with it. Let's say my Wireguard IP is 10.0.0.1,...
Read more >c# - Can't access WEB API with ip:port but can with localhost ...
To circumvent this, you can open the IIS-Express application config file located at: C:\Users\<username>\My Documents\IISExpress\config\applicationhost.config ...
Read more >Localhost Refused to Connect Error: 5 Confirmed Ways to Fix It
Localhost refused to connect error can be caused by an incorrectly configured port, insufficient permissions, or an inoperative web server.
Read more >Localhost REST service cannot connect - OutSystems
I have a local rest service (node.js) running on port 3000 on my developer machine (localhost). I would like to get my Mobile...
Read more >How to access localhost website server/api publicy ... - YouTube
Access # localhost #internet #website #webserver # api #freeIn This video i will show you How To ... Your browser can ' t...
Read more > Top Related Medium Post
Top Related Medium Post
No results found
 Top Related StackOverflow Question
Top Related StackOverflow Question
No results found
 Troubleshoot Live Code
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free Top Related Reddit Thread
Top Related Reddit Thread
No results found
 Top Related Hackernoon Post
Top Related Hackernoon Post
No results found
 Top Related Tweet
Top Related Tweet
No results found
 Top Related Dev.to Post
Top Related Dev.to Post
No results found
 Top Related Hashnode Post
Top Related Hashnode Post
No results found

I think you swapped the above cases, are you running the server at your local personal laptop or desktop? in that case it won’t work for other devices If you want it there are some router configuration you can do and them expose the ports but I think even then it will be only accessible to the devices connected to router
I got it, thank you. I change the default inference_address=https://127.0.0.1:8443 to inference_address=https://0.0.0.0:8443, the problem is solved.