Read port number as parameter