简体   繁体   中英

how can i make someone on another network access my website with django

hello guys I'm trying to make another one to access my Django website I host it on my localhost by type

python manage.py runserver 0.0.0.0:8000

and i set the ALLOWED_HOSTS = ['*']

when I trying to connect with my IP it's says refused to connect. can someone help me

you are only hosting your server in your local network therefore no-one outside of this network can access your server. To make them access it you would have to make it accessible over the internet for example via hosting it on aws or another cloud hoster.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM