pytorch/serve

How to access API outside of localhost?

Open

#1.152 geöffnet am 7. Juli 2021

Auf GitHub ansehen
 (7 Kommentare) (0 Reaktionen) (0 zugewiesene Personen)Java (790 Forks)batch import
help wantedsupport

Repository-Metriken

Stars
 (3.844 Stars)
PR-Merge-Metriken
 (Keine gemergten PRs in 30 T)

Beschreibung

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, then in the config.properties file, I change inference_address=http://10.0.0.1:8080. I'm able to use the API locally but unable to do so outside of the device (I keep getting a timeout error).

What I've tried so far: I have also tried changing inference_address to 0.0.0.0:8080, but that didn't help either. Even running it on a different port like 0.0.0.0:5000 didn't help. If I use a tunnel (like ngrok) and expose port 8080, it works perfectly.

If I have another application running on a separate port, that is accessible by my other device.

Can someone help out?

Thanks!

Contributor Guide