Building on https://github.com/bytecodealliance/cargo-component/issues/326, `cargo component serve` should be able to take a `--port` command similar to `wasmtime serve` to specify a port.