The confusion has occurred as on this page under "Reverse proxy configuration" it has been mentioned so :
By default, Elastic Beanstalk configures the proxy to forward requests coming in on port 80 to your main web application on port 5000.
And on this page it has been mentioned like so:
By default, Elastic Beanstalk configures the proxy to forward requests to your application on port 8080.
So is it port 5000 or is port 8080 the default port to which the requests are forwarded?