Amazon AWS provides a public and private IP address to its clouds. While running the /install/community-edition-setup/setup.py script, use the Private IP address.
Another hint: the hostname is very long. I think its better to use a shorter hostname. If you don't have DNS running somewhere, update the hosts file on your local computer also (so your browser can find the re-direct).