Get port from environment first