Can't connect from server on pythonanywhere but can do same from local

nitinjaipur
TRIAL

5 months ago

My backend is on django. On local it working fine. But when I host my backend and try to do any database operations (CRUD) than it doesn't work.

I am getting this error
connection to server at "monorail.proxy.rlwy.net" (**.***.**.***), port *****failed: Connection refused Is the server running on that host and accepting TCP/IP connections?

Awaiting User Response

1 Replies

5 months ago

Hello,

Your database is indeed accessible, and we do not block any incoming traffic from pythonanywhere, this would be an issue on their side.

But instead, could I ask you why not try to run your Python app on Railway? we do far more than databases!

See some guides we have for python here -

https://docs.railway.com/guides/languages-frameworks#python

Best,
Brody


Status changed to Awaiting User Response railway[bot] 5 months ago


Can't connect from server on pythonanywhere but can do same from local - Railway Help Station