Adding port number to sendHandshake function