Explicit computation of port number -- avoids str2num