support port "0" to assign a random port

Query the listening port then print in console and apply to snippet for middleware of grunt-contrib-connect.