Bitcoin Forum
May 28, 2024, 11:48:36 PM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: CPUminer Solo mining: failed to connect to 127.0.0.1 connection refused  (Read 5499 times)
EBK1000 (OP)
Legendary
*
Offline Offline

Activity: 1148
Merit: 1000


A Wound in Eternity


View Profile
March 01, 2015, 07:21:23 PM
 #1

Hi,

I am new to solo mining and have only used pools so far. I am trying to mine X11 and I start the the minerd and it starts and everyting seems fine but I get:
HTTP request failed: HTTP request failed: failed to connect to 127.0.0.1:21532 connection refused

What is happening here? Can anyone help please?

Soooooooon...............
Bombadil
Hero Member
*****
Offline Offline

Activity: 644
Merit: 500



View Profile
March 02, 2015, 06:09:10 AM
 #2

What coin are you trying to mine solo? Is your coin wallet fully synced?
Have you set a coin.conf file in %appdata%/roaming/coin with the correct user and pass you're using on cpuminer?
EBK1000 (OP)
Legendary
*
Offline Offline

Activity: 1148
Merit: 1000


A Wound in Eternity


View Profile
March 02, 2015, 07:00:23 AM
 #3

What coin are you trying to mine solo? Is your coin wallet fully synced?
Have you set a coin.conf file in %appdata%/roaming/coin with the correct user and pass you're using on cpuminer?

I am trying to mine my own X11 coin which currently had 0 blocks. I have put a xxxx.conf file in %appdata% and set the ports and the server settings and I have two nodes running and the wallet connects to the nodes and appears ready. I am using cpuminer X11. I have turned off all the anti-virus stuff and turned off the firewall. I have also started the wallet with -conf=%appdata%/xxxxx/xxxxx.conf

I have Windows 7 pro, 64 bit

When I run netstat -a I can not see the wallet or anything listening on the port I have set and this is why cpuminer can not connect but why is the wallet not listening.

Soooooooon...............
PacSharedMasternodes.com
Newbie
*
Offline Offline

Activity: 52
Merit: 0


View Profile
March 10, 2018, 06:36:43 AM
 #4

Hi,

I am new to solo mining and have only used pools so far. I am trying to mine X11 and I start the the minerd and it starts and everyting seems fine but I get:
HTTP request failed: HTTP request failed: failed to connect to 127.0.0.1:21532 connection refused

What is happening here? Can anyone help please?

Did you ever get this issue resolved. I am getting the same issue trying to mine the premine block.

Checked conf file, verified everything was correct and made sure TCP port was open. Still getting connection refused.
manji
Full Member
***
Offline Offline

Activity: 210
Merit: 174


BookiePro.Fun - The World's Betting Exchange


View Profile
March 10, 2018, 04:14:40 PM
 #5

Hi,

I am new to solo mining and have only used pools so far. I am trying to mine X11 and I start the the minerd and it starts and everyting seems fine but I get:
HTTP request failed: HTTP request failed: failed to connect to 127.0.0.1:21532 connection refused

What is happening here? Can anyone help please?

Did you ever get this issue resolved. I am getting the same issue trying to mine the premine block.

Checked conf file, verified everything was correct and made sure TCP port was open. Still getting connection refused.
Have you added rpcallowip to your coin.conf? I suggest allowing all IPs. Have you start your wallet as a server (-server)? Also tried another port if possible.

Vann
Hero Member
*****
Offline Offline

Activity: 1036
Merit: 606



View Profile
March 10, 2018, 04:30:15 PM
 #6

You can try adding the rpc allow IP's to coin .conf file. To only allow connections from you LAN you can specify your LAN subnet in the rpcconnect parameter. You also need to specify the internal IP address from the machine you are connecting the miner in rpcconnect. Then start the wallet in server mode and use the wallet IP address, rpcuser, rpcpassword and rpcport in the miner config file. Similar to how it's explained here:

https://bitcointalk.org/index.php?topic=408268.msg10194594#msg10194594

Code:
server=1
daemon=1
listen=1
rpcallowip=192.168.1.0/255.255.255.0
rpcconnect=127.0.0.1
rpcport=<RPCPORT>
port=<PORT>
rpcuser=coinrpcuser
rpcpassword=<PASSOWRD>
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!