Bitcoin Forum
May 12, 2024, 12:32:22 PM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: Why Does The Bitcoin Server Create ~5x Fewer Connections Than Regular Bitcoin?  (Read 2106 times)
gigabytecoin (OP)
Sr. Member
****
Offline Offline

Activity: 280
Merit: 252


View Profile
May 07, 2011, 01:29:48 AM
 #1

I have noticed this for a few days now...

And yes I have forwarded my ports Tongue (In fact, I don't have any to forward, I am not behind a router).

Whenever I double click on (I'm using windows) the bitcoin client, it pops up and begins acquiring connections quite quickly, up to about 50 or 60 connections in less than a minute I would say.

When I run bitcoin.exe -server from the command line, the GUI pops up like normal but it only ever reaches 10-15 connections maximum, even after waiting for an hour or two.

Anybody else notice this? Anybody know why?

Notes: Windows 7, 32 Bit
There are several different types of Bitcoin clients. The most secure are full nodes like Bitcoin Core, but full nodes are more resource-heavy, and they must do a lengthy initial syncing process. As a result, lightweight clients with somewhat less security are commonly used.
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction.
1715517142
Hero Member
*
Offline Offline

Posts: 1715517142

View Profile Personal Message (Offline)

Ignore
1715517142
Reply with quote  #2

1715517142
Report to moderator
1715517142
Hero Member
*
Offline Offline

Posts: 1715517142

View Profile Personal Message (Offline)

Ignore
1715517142
Reply with quote  #2

1715517142
Report to moderator
Matt Corallo
Hero Member
*****
expert
Offline Offline

Activity: 755
Merit: 515


View Profile
May 07, 2011, 08:42:00 PM
 #2

Really shouldn't happen, I see no reason why.  Have you tried just opening alternating ones repeatedly for a while to make sure its not a first/second time thing?

Bitcoin Core, rust-lightning, http://bitcoinfibre.org etc.
PGP ID: 07DF 3E57 A548 CCFB 7530  7091 89BB B866 3E2E65CE
grue
Legendary
*
Offline Offline

Activity: 2058
Merit: 1431



View Profile
May 07, 2011, 10:01:26 PM
 #3

10-15 connections means your port is properly forwarded, and other clients can contact you.

It is pitch black. You are likely to be eaten by a grue.

Adblock for annoying signature ads | Enhanced Merit UI
Gavin Andresen
Legendary
*
qt
Offline Offline

Activity: 1652
Merit: 2216


Chief Scientist


View Profile WWW
May 08, 2011, 12:19:18 AM
 #4

The networking code is the same in either case, so it was almost certainly just a coincidence and you got unlucky with the peers you connected to running -server from the command line.

How often do you get the chance to work on a potentially world-changing project?
Cryptoman
Hero Member
*****
Offline Offline

Activity: 726
Merit: 500



View Profile
May 08, 2011, 05:06:50 AM
 #5

When I run bitcoin.exe -server from the command line, the GUI pops up like normal but it only ever reaches 10-15 connections maximum, even after waiting for an hour or two.

Anybody else notice this? Anybody know why?

Notes: Windows 7, 32 Bit

I seem to recall someone else mentioning this earlier and attributing it to Windows.  I don't know much about Windows networking code, but is there some sort of adjustable limitation placed on services?  My detached bitcoind process running under Linux currently has 114 connections.

"A small body of determined spirits fired by an unquenchable faith in their mission can alter the course of history." --Gandhi
Matt Corallo
Hero Member
*****
expert
Offline Offline

Activity: 755
Merit: 515


View Profile
May 08, 2011, 12:37:05 PM
 #6

I seem to recall someone else mentioning this earlier and attributing it to Windows.  I don't know much about Windows networking code, but is there some sort of adjustable limitation placed on services?  My detached bitcoind process running under Linux currently has 114 connections.
As gavin said, its the same code either way.  My bet is the OP opened it once noticed quite a few connections, closed it, and opened bitcoin one last time with -server causing him to lose all the previous connections.  Even after waiting a while, those connections didn't come back because the clients who did have his node in their known node list lost their connection they won't make a new one and others just didn't connect to him. 

Bitcoin Core, rust-lightning, http://bitcoinfibre.org etc.
PGP ID: 07DF 3E57 A548 CCFB 7530  7091 89BB B866 3E2E65CE
gigabytecoin (OP)
Sr. Member
****
Offline Offline

Activity: 280
Merit: 252


View Profile
May 08, 2011, 07:23:03 PM
 #7

I seem to recall someone else mentioning this earlier and attributing it to Windows.  I don't know much about Windows networking code, but is there some sort of adjustable limitation placed on services?  My detached bitcoind process running under Linux currently has 114 connections.
As gavin said, its the same code either way.  My bet is the OP opened it once noticed quite a few connections, closed it, and opened bitcoin one last time with -server causing him to lose all the previous connections.  Even after waiting a while, those connections didn't come back because the clients who did have his node in their known node list lost their connection they won't make a new one and others just didn't connect to him. 

Update: 3 full days later of running bitcoin.exe -server and I am only up to 43 connections. It climbs steadily...

BUT, if I were to simply open bitcoin.exe by double clicking on it, without adding the -server command... I would be up to 50-60 connections within a matter of minutes.

Something about this doesn't seem right.

I am running Windows 7 Ultimate, 32 bit.
Matt Corallo
Hero Member
*****
expert
Offline Offline

Activity: 755
Merit: 515


View Profile
May 08, 2011, 07:25:17 PM
 #8

if I were to
Have you actually tried?

Bitcoin Core, rust-lightning, http://bitcoinfibre.org etc.
PGP ID: 07DF 3E57 A548 CCFB 7530  7091 89BB B866 3E2E65CE
gigabytecoin (OP)
Sr. Member
****
Offline Offline

Activity: 280
Merit: 252


View Profile
May 09, 2011, 04:08:39 AM
 #9

if I were to
Have you actually tried?

Yes. I have tried. And I will try again right now to double check.

Just now... my internet connection cut out for a few minutes... I plummeted from about 40 connections (after 3-4 days running bitcoin.exe -server non stop) down to ~10 connections, and hours later I am still only at 12 connections.

Once again... I have shut down by bitcoin.exe -server and opened bitcoin.exe by double clicking on it... after just 20-30 seconds I am up to 20 connections - where as it has taken me hours to get up to 12 connections using bitcoin.exe -server

I assure you, I am not crazy!
Matt Corallo
Hero Member
*****
expert
Offline Offline

Activity: 755
Merit: 515


View Profile
May 09, 2011, 09:13:06 AM
 #10

Yes. I have tried. And I will try again right now to double check.
Hmmmm...just doesn't seem possible.  They do run the exact same networking code.  Has to be something circumstantial but I have no idea what it would be...oh well, unless you don't have the 8 outgoing, you are fine.

Bitcoin Core, rust-lightning, http://bitcoinfibre.org etc.
PGP ID: 07DF 3E57 A548 CCFB 7530  7091 89BB B866 3E2E65CE
JBDive
Full Member
***
Offline Offline

Activity: 238
Merit: 100


View Profile
June 17, 2011, 02:58:19 AM
 #11

Pretty much the same issue here. I launch bitcoin -server and I will jump to 120 connections. Within 2 minutes that has dropped to 60-70, in a few days to around 50 then after a week maybe 5.

This just happened tonight with it dropping to 5 so I restarted it, initial was 117 connections, dropped to 66 then bounced back up to mid 80's then 90's, all within 5 minutes. I am behind a firewall and I do have ports open on both that Firewall and Windows 7 firewall.
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!