I just set up Django on a dreamhost server. Ran through everything, but can’t seem to get the welcome page. I got to the point where it says “Development server is running at 127.0.0.1:8002 (tried with 8000 but got the “that port is already in use error). When I try to access that address in my browser in Chrome I get Error 102 (net::ERR_CONNECTION_REFUSED): The server refused the connection.
Any idea why this is happening? I am stuck in a loop, I have no clue what is going on. Help is sincerely appreciated.
You need to know your server’s IP or domain address. If you used example.com to access you server SSH, then launching Django with
and accessing it with
http://example.com:8002should work. But if you only know IP, then launch Django with that IP instead ofand access it with
http://YOUR-IP:8002