EADDRNOTAVAIL while using EC2 instance only

My node application is listening to port 8080. When I add app.listen(port,'50.30.217.289'); I can access the application from the browser. But when I replace the IP address with the Elastic IP ad...