I started a dfx instance with dfx start. In the first couple lines, it prints out the replica’s address (e.g. http://localhost:56829/). But then it fills the scrollback as the replica runs and eventually I can’t scroll back to that line. How do I find the address of a locally running replica?
I tried using dfx start --host to specify where I wanted the replica to be located at, but it still uses a random port. Running dfx start --host 127.0.0.1:54321 prints at the end:
edit: I was able to specify the port by running dfx bootstrap --port 54321. This seems to do everything I need. What server does the dfx replica call start? What will I miss out on by starting using dfx bootstrap --port 54321 instead of dfx start?
The port you’re specifying there is for the frontend. That’s the ‘binding to’ port in your first post.
dfx replica runs the actual IC replica, the bootstrap server is serving the frontend, including assets. Was it the frontend port you want to change? (If it is you can set it in dfx.json under local.bind and just run dfx start as normal)
It will, but you’ll need to point the bootstrap at the replica with the --network flag. You’d also need to point dfx canister calls at the replica using the network flag too; you used to be able set the port for this in dfx.json, and just use the canister commands as normal, but I don’t recall where the key for this moved to in recent versions.