dinamically get port