Changed host from localhost to 0.0.0.0 to work on cloudhub as well.