1

I've started to implement my bitcoin client to learn the protocol and faced a problem to see debugging output. When I start bitcoind with -debug option, it start to print so many debug messages in such speed that i can't see whats wrong with my client implementation. How can I start the bitcoind program in such way that it will not sync and just listen to new connections from local machine?

1 Answer 1

1

Try

bitcoind -bind=127.0.0.1 -connect=127.0.0.1
4
  • strange, when im doing -connect=127.0.0.1 it opens only port 8332, but without this option it also opens 8333 port. I believe that commands like "VERSION" i should send to 8333 port because 8332 doesn't answer me at all.
    – Anderson
    Dec 12, 2013 at 14:37
  • You're right. It seems that it goes in RPC mode. Adding -listen=1 enables 8333. If that doesn't work. bitcoind -bind=127.0.0.1 should do it. Let what works for you.
    – Sev
    Dec 12, 2013 at 14:59
  • I meant bitcoind -bind=127.0.0.1 -connect=127.0.0.1
    – Sev
    Dec 12, 2013 at 15:07
  • 1
    I found another method, run the bitcoind as usual and add firefwall rule sudo iptables -A OUTPUT -p tcp --out-interface wlan0 --dport 8333 -j DROP
    – Anderson
    Dec 13, 2013 at 15:16

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.