By isdat
I can’t access to my backend django data after I run my server with my address IP with command bellow :“python3 manage.py runserver 192.168.1.6:8000”,
This textbox defaults to using Markdown to format your answer.
You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!
Hi @isdat,
Please note that 192.168.1.6 is an internal IP address so if you are not in one network trying to reach 192.168.1.6 would not be possible.
The next step would be to allow connection from your droplet to the other droplet on port 1880 via IPtables.
sudo iptables -A INPUT -p tcp -s XXX.XXX.XXX.XXX --dport 8000 -m conntrack --ctstate NEW,ESTABLISHED -j ACCEPT
sudo iptables -A OUTPUT -p tcp --sport 8000 -m conntrack --ctstate ESTABLISHED -j ACCEPT
Please remember to change XXX.XXX.XXX.XXX with the IP address the request is coming from i.e your droplet.
Regards, KFSys
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Full documentation for every DigitalOcean product.
The Wave has everything you need to know about building a business, from raising funding to marketing your product.
Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.
New accounts only. By submitting your email you agree to our Privacy Policy
Scale up as you grow — whether you're running one virtual machine or ten thousand.
Sign up and get $200 in credit for your first 60 days with DigitalOcean.*
*This promotional offer applies to new accounts only.