Bitcoin Forum
June 17, 2024, 08:47:29 AM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: I can't start bitcoin deamon  (Read 993 times)
alexhava (OP)
Newbie
*
Offline Offline

Activity: 5
Merit: 0


View Profile
January 06, 2015, 03:32:48 PM
 #1

Hi all,
I try to integrate bitcoin into my website. I am testing on windows machine. So I have downloaded bitcoin from https://bitcoin.org/en/download and started it. But when I try to connect http://myuser:mypass@127.0.0.1:8332, I get couldn't connect to host. What do I do wrong?
alexhava (OP)
Newbie
*
Offline Offline

Activity: 5
Merit: 0


View Profile
January 07, 2015, 12:40:32 PM
 #2

can anybody help me?
cr1776
Legendary
*
Offline Offline

Activity: 4074
Merit: 1303


View Profile
January 07, 2015, 12:44:30 PM
Last edit: January 07, 2015, 12:57:15 PM by cr1776
 #3

What are you attempting to accomplish? RPC?

Are you sure Bitcoin is not running? Why do you say you can't start it?

How are you trying to connect via http?

Do you have server=1 set? And/or how are you starting it? Did you set up a conf file?
alexhava (OP)
Newbie
*
Offline Offline

Activity: 5
Merit: 0


View Profile
January 07, 2015, 03:20:07 PM
 #4

Thank you for your reply, I am newbie with it and seems really need help with installing this service
What are you attempting to accomplish? RPC?
Yes, I am.
Are you sure Bitcoin is not running? Why do you say you can't start it?
because I can't connect to the service.
How are you trying to connect via http?
there is library, it does that, ex.  $curl    = curl_init("{$this->proto}://{$this->username}:{$this->password}@{$this->host}:{$this->port}/{$this->url}");

Do you have server=1 set? And/or how are you starting it? Did you set up a conf file?
Can you please explain where to set server =1? As I wrote I installed bitcoin to windows machine and just starting bitcoin-qt.exe. I didn't set up config but it didn't ask me for config


cr1776
Legendary
*
Offline Offline

Activity: 4074
Merit: 1303


View Profile
January 07, 2015, 03:58:03 PM
Last edit: January 07, 2015, 05:16:09 PM by cr1776
 #5

Hi,
It sounds like you are on the right track.  curl should do it.

A link to check out is:
https://en.bitcoin.it/wiki/Running_Bitcoin


In the Windows section, of note is:
Quote
Batch automation
To work with batch, you have to start the daemon (bitcoind.exe). The bitcoin.exe run with option "-server" will respond with GUI-messages you are not able to process its answers.

I believe they are using "batch" to indicate the RPC server interface.

So it appears you'd want to run something like this which is similar to Linux:
bitcoind.exe -server

My guess is that you did something like
bitcoin.exe
or just started it from the desktop which I don't believe starts the RPC interface.

Alternatively you could use the server=1 in the bitcoin.conf file  - the appropriate location is detailed on the link below.  I don't run it on Windows, but in the bitcoin.conf file you'd want to add a server=1 option see the link above if you don't use the command line option.

You will also need to set your rpcuser and rpcpassword in the bitcoin.conf file (or the command line perhaps, but I think the .conf file is preferred).

Hopefully that will help a little....let us know!  ;-)
alexhava (OP)
Newbie
*
Offline Offline

Activity: 5
Merit: 0


View Profile
January 07, 2015, 06:54:44 PM
 #6

yes thats it! Thank you so much for your help
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!