Thursday, June 23, 2022

Re: server can't connect in browser

ok this is networking 101 stuff

if the server is running on 127.0.0.1 8000 (or whatever port)

and you are trying to access from another system you need to use the ip
address of the server (not 127.0.0.1) and it needs to be accesable on
your network to be able to find it.

best to try telneting to the server as a test to verify ip & ports are
correct.

example :

telnet 192.168.0.2<ipaddress> <space> 8000 <port> for example if you get
a response then you are good to go.

ie

"telnet 192.168.0.2 8000"





Happy Thursday !!!
Thanks - paul

Paul Kudla


Scom.ca Internet Services <http://www.scom.ca>
004-1009 Byron Street South
Whitby, Ontario - Canada
L1N 4S3

Toronto 416.642.7266
Main 1.866.411.7266
Fax 1.888.892.7266
Email paul@scom.ca

On 6/22/2022 1:46 PM, Django-Admin wrote:
> Try opening the link in a browser in the same EC2 instance, if you are
> not doing so.
>
> On Wednesday, June 22, 2022 at 6:37:18 PM UTC+5:30 kamald...@gmail.com
> wrote:
>
> Hi all,
> I am quite new in django. Just started my first project in it.
> I started an ec2 instance, setup virtual environment and run server
> through
> python manage.py runserver command.
> Server is up with no errors. But when I copy the link and open in
> browser it says site can't be reached. Screenshots of it are
> attached for reference.
>
> --
> You received this message because you are subscribed to the Google
> Groups "Django users" group.
> To unsubscribe from this group and stop receiving emails from it, send
> an email to django-users+unsubscribe@googlegroups.com
> <mailto:django-users+unsubscribe@googlegroups.com>.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/dfe8f847-65bc-4602-b3b9-9e7a81998459n%40googlegroups.com
> <https://groups.google.com/d/msgid/django-users/dfe8f847-65bc-4602-b3b9-9e7a81998459n%40googlegroups.com?utm_medium=email&utm_source=footer>.
>
> --
> This message has been scanned for viruses and
> dangerous content by *MailScanner* <http://www.mailscanner.info/>, and is
> believed to be clean.

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/eef876cb-0c0c-5123-63f2-3fc6b727eac5%40scom.ca.

No comments:

Post a Comment