Adding a function to determine what port users should use, and change reporting based on install vs update