I have a Django app. It works on EC2. EC2 has a private IP address and a resilient public IP address.
I want the web application to be accessible locally, as well as the IP address of the developer, which is located outside the network.
Define these three IP addresses as:
EC2_PRIVATE_IP EC2_PUBLIC_IP DEVELOPER_IP
So what I did was run through EC2:
python manage.py runserver 0.0.0.0:8000
I went into my EC2 security settings and opened the inbound and outbound port 8000 in DEVELOPER_IP.
Then he asked the Developer to go to the address EC2_PUBLIC_IP in his browser.
Unfortunately, this does not work as it gets an error:
Gateway Timeout: can't connect to remote host
Update # 1
I tried before:
python manage.py runserver {EC2_PUBLIC_IP}:8000
But I got the error:
Error: That IP address can't be assigned-to.
source share