Report this

What is the reason for this report?

display data in an other device on my network

Posted on November 28, 2020

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!

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

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

The developer cloud

Scale up as you grow — whether you're running one virtual machine or ten thousand.

Get started for free

Sign up and get $200 in credit for your first 60 days with DigitalOcean.*

*This promotional offer applies to new accounts only.