Forums

Accessing an internal service from a Django instance

Hello. I have set up an internal service on my account (Tesla vehicle command proxy) and got it running on port 8001. I can call it from the python console in the bash console for the account, but I get "Failed to establish a new connection: [Errno 111] Connection refused' when calling it from my Django web app on the same account. Is there any way to get around this, like letting the service listen on 0.0.0.0 and calling it through something else than 127.0.0.1 or localhost?

No, we do not route any network traffic to servers on arbitrary ports, so you may be able to access it from, for example, the same console because that is on the same machine, but you web app is not, so you will not be able to access it from there.

Thanks for replying. I suspected this and I do understand. If you can come up with an innovative way of communicating between these, I would be happy to hear.

Can your service listen on a Unix domain socket?