Using public IP to Amazon server in place of localhost in client.