updates portnum to 5000