How do I configure a port in my .conf file?


This is what my conf file looks like:

prune=600maxconnections=12maxuploadtarget=20rpcuser=userrpcpassword=passwordkeypool=10000server=1[main]rpcport=5040

Whenever I run this from the command line I get the following error:

I checked for port 5040 using the netstat -a and it was listening, what’s the problem?


Article source: “https://bitcoin.stackexchange.com/questions/85494/how-do-i-configure-a-port-in-my-conf-file”