If you have gone through the Setting up a local private Ethereum blockchain, you've already encountered a few API and console options:
- --ipcdisable and --rpcport: The --ipcdisable flag disables the IPC-RPC server.
- --rpcport decides which listening port to use for the HTTP-RPC server.
- --rpc starts the HTTP JSON-RPC server. Alternatively, you can use admin.startRPC (addr, port) to start the HTTP JSON-RPC server.
- In order to access RPC via a browser without request failures (due to same-origin policy), --rpccorsdomain needs to be supplied with the comma-separated set of domains. Like the following command, we start with geth and append the--rpc, and --rpccorsdomain options with a local host, as follows:
$ geth --rpc ...