Zarel/Pokemon-Showdown — pull request #500 by Aananth31 (2013-12-10 11:48:59+00:00)
Title: Make hosts like heroku recognise $port

The above command line 'var port = process.env.PORT || 8000;', makes heroku to respond or it just returns with a timeout.
Source: me and my foolish dream of making a server ;p