Intellipaat Back

Explore Courses Blog Tutorials Interview Questions
0 votes
2 views
in Python by (16.4k points)
closed by

I'm executing python manage.py runserver from a machine A when I am attempting to check in machine B The URL I composed is http://A:8000/I am getting a mistake like A framework returned: (111) Connection declined

closed

4 Answers

0 votes
by (25.7k points)
selected by
 
Best answer
While running python manage.py runserver on machine A, I encountered an error when attempting to access the URL http://A:8000/ from machine B. The error message displayed was "A system returned: (111) Connection refused."
0 votes
by (26.4k points)

You can execute it for machines in your organization by 

./manage.py runserver 0.0.0.0:8000

And afterward, you will actually want to arrive at your server from any machine in your organization. Simply type on another machine in the program http://192.168.0.1:8000 where 192.168.0.1 is the IP of your worker... what's more, it all set...

or in you case:

  1. On machine A in command line ./manage.py runserver 0.0.0.0:8000
  2. Than try in machine B in browser type http://A:8000
  3. Make a sip of beer.

Want to learn python to get expertise in the concepts of python? Join python certification course and get certified

0 votes
by (15.4k points)

When I ran python manage.py runserver on machine A and tried to access the URL http://A:8000/ from machine B, I received an error indicating that the connection was refused.

0 votes
by (19k points)

I encountered an error message stating "(111) Connection refused" when I attempted to access the URL http://A:8000/ from machine B while running python manage.py runserver on machine A.

Related questions

0 votes
1 answer
asked Nov 25, 2020 in Python by ashely (50.2k points)
0 votes
1 answer
asked Feb 25, 2021 in Python by laddulakshana (16.4k points)
0 votes
1 answer

Browse Categories

...