Retrieving port number from environment