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

0

This is what my conf file looks like:

prune=600
maxconnections=12
maxuploadtarget=20
rpcuser=user
rpcpassword=password
keypool=10000
server=1

[main]
rpcport=5040

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

Binding RPC on address ::1 port 5040 failed.

Binding RPC on address 127.0.0.1 port 5040 failed.

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

frogman578

Posted 2019-03-21T21:01:28.563

Reputation: 23

Are you sure nothing else is using port 5040 already?Raghav Sood 2019-03-21T23:42:46.550

Please post the results of running sudo lsof -i | grep 5040Alistair Mann 2019-03-21T23:49:34.897

My OS is Windows 10, not linuxfrogman578 2019-03-22T07:10:23.923

Answers

0

Windows 10

Run netstat -ab >file.txt then notepad file.txt and search on 5040. I suspect you will find CDPSvc immediately underneath - on my machine this "Connected Devices Platform Service" is already using your port.

If that's so, search on 5041, then 5042 and continue up until search can't find it. That port is free: change your rpcport to match it.

Alistair Mann

Posted 2019-03-21T21:01:28.563

Reputation: 522

Nothing happens when I run that commandfrogman578 2019-03-24T19:10:22.297

There are two commands.Alistair Mann 2019-03-24T22:46:02.490

I don't quite understand, could you elaborate more?frogman578 2019-03-25T18:36:10.947

1/4: Open up an Admin Command Prompt

Alistair Mann 2019-03-25T22:13:24.903

2/4: Type netstat -ab >file.txt into the Command Prompt, then press return. This is the first command and you do not expect something to happen: the >file.txt element tells Windows to save the ordinary output into a file in the current directory called file.txt. You're doing this because the ordinary output will overflow the Command Prompt buffer and you'll lose the initial output.Alistair Mann 2019-03-25T22:14:06.517

3/4: Type notepad file.txt into the Command Prompt, then press return. This is the second command and you DO expect something to happen. Microsoft notepad will appear with the netstat -ab output already within it.

Alistair Mann 2019-03-25T22:14:13.223

4/4: Using notepad, search on 5040 as described above.Alistair Mann 2019-03-25T22:14:22.667