Port specification changed to use environment vars