question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

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:closed
  • Created 2 years ago
  • Comments:7 (1 by maintainers)

github_iconTop GitHub Comments

3reactions
PushpakBhoge512commented, Jul 14, 2021

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

1reaction
brainnnnupcommented, Jul 15, 2021

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.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found