Bitcoin Forum
May 07, 2024, 03:33:23 PM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: bitcoind disconnecting 127.0.0.1  (Read 1223 times)
HELP.org (OP)
Hero Member
*****
Offline Offline

Activity: 510
Merit: 500



View Profile WWW
February 16, 2013, 03:04:44 AM
Last edit: September 15, 2013, 03:30:57 PM by HELP.org
 #1

..

Certified Bitcoin Professional
Bicoin.me - Bitcoin.me!
The forum strives to allow free discussion of any ideas. All policies are built around this principle. This doesn't mean you can post garbage, though: posts should actually contain ideas, and these ideas should be argued reasonably.
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction.
1715096003
Hero Member
*
Offline Offline

Posts: 1715096003

View Profile Personal Message (Offline)

Ignore
1715096003
Reply with quote  #2

1715096003
Report to moderator
1715096003
Hero Member
*
Offline Offline

Posts: 1715096003

View Profile Personal Message (Offline)

Ignore
1715096003
Reply with quote  #2

1715096003
Report to moderator
1715096003
Hero Member
*
Offline Offline

Posts: 1715096003

View Profile Personal Message (Offline)

Ignore
1715096003
Reply with quote  #2

1715096003
Report to moderator
kjj
Legendary
*
Offline Offline

Activity: 1302
Merit: 1025



View Profile
February 18, 2013, 01:12:31 PM
 #2

You have the node connecting to itself, which will never work.  Self-connections are detected by a random nonce in the version message used in the initial handshake, not by IP address.

If you have a second node running that you want to connect to, specify the port in your -connect option.  127.0.0.1:port

17Np17BSrpnHCZ2pgtiMNnhjnsWJ2TMqq8
I routinely ignore posters with paid advertising in their sigs.  You should too.
Buffer Overflow
Legendary
*
Offline Offline

Activity: 1652
Merit: 1015



View Profile
February 18, 2013, 03:45:14 PM
 #3

I don't understand why you are connecting to 127.0.0.1 (localhost). If you wish to connect to another bitcoin node on your LAN you need to use it's IP address, such as 192.168.1.2 for example.

kjj
Legendary
*
Offline Offline

Activity: 1302
Merit: 1025



View Profile
February 18, 2013, 05:09:27 PM
 #4

I am connecting through a Python script to capture Bitcoin transactions to display them on a web page.  I start Bitcoind and then the Python script.  The script grabs the transactions and put them in a database.  It all seems to work for a time but Bitcoind keeps disconnecting the connection started by the python script.  If I stop everything and delete addr.dat (or peers.dat for version 0.7.2) then it all starts working again for a short time until the disconnects start again.

In that case, your python script isn't right.  The client will disconnect a node once it realizes it isn't working right.  It can take a few minutes for your script to trigger the bogus node detection.  Out of curiosity, is your script generating a random nonce for the address message, or is it repeating what it sees?

17Np17BSrpnHCZ2pgtiMNnhjnsWJ2TMqq8
I routinely ignore posters with paid advertising in their sigs.  You should too.
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!