Bitcoin Forum
May 09, 2024, 04:51:58 PM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: « 1 2 [3]  All
  Print  
Author Topic: Running on a port other than 8333  (Read 26113 times)
Blockchain Mechanic
Full Member
***
Offline Offline

Activity: 380
Merit: 103

Developer and Consultant


View Profile WWW
February 24, 2017, 01:07:14 AM
 #41

It doesn't matter which post you select, because at some point in time (around adding the addr messages ad removing IRC) the algo in the bitcoin core for selecting peers to connect to has been fucked up. And ever since then the bitcoin core node intentionally discards peers that are listening at non-default port.

I raised this issue once, but the answer was that it wasn't a bug, but a security feature.
Great feature, BTW - it makes me feel so much more secured! Smiley

Anyway, if you setup you node to use a different port, you only get incoming connections from non bitcoin core nodes.
Because the bitcoin code node is fucked up and nobody gives a shit about it.

Can you link me to the section of code that discards the peers, i'd like to submit a patch toc change that aspect. Users should be allowed to use whatever port they desire.

Equality vs Equity...
Discord :- BlockMechanic#8560
1715273518
Hero Member
*
Offline Offline

Posts: 1715273518

View Profile Personal Message (Offline)

Ignore
1715273518
Reply with quote  #2

1715273518
Report to moderator
1715273518
Hero Member
*
Offline Offline

Posts: 1715273518

View Profile Personal Message (Offline)

Ignore
1715273518
Reply with quote  #2

1715273518
Report to moderator
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction.
1715273518
Hero Member
*
Offline Offline

Posts: 1715273518

View Profile Personal Message (Offline)

Ignore
1715273518
Reply with quote  #2

1715273518
Report to moderator
1715273518
Hero Member
*
Offline Offline

Posts: 1715273518

View Profile Personal Message (Offline)

Ignore
1715273518
Reply with quote  #2

1715273518
Report to moderator
piotr_n
Legendary
*
Offline Offline

Activity: 2053
Merit: 1354


aka tonikt


View Profile WWW
February 24, 2017, 01:18:28 AM
Last edit: February 24, 2017, 02:08:39 AM by piotr_n
Merited by ABCbits (1)
 #42

It doesn't matter which post you select, because at some point in time (around adding the addr messages ad removing IRC) the algo in the bitcoin core for selecting peers to connect to has been fucked up. And ever since then the bitcoin core node intentionally discards peers that are listening at non-default port.

I raised this issue once, but the answer was that it wasn't a bug, but a security feature.
Great feature, BTW - it makes me feel so much more secured! Smiley

Anyway, if you setup you node to use a different port, you only get incoming connections from non bitcoin core nodes.
Because the bitcoin code node is fucked up and nobody gives a shit about it.

Can you link me to the section of code that discards the peers, i'd like to submit a patch toc change that aspect. Users should be allowed to use whatever port they desire.
That was my thinking from the very beginning. Also because now it's very easy to block bitcoin just by blocking tcp connections on port 8333

Changing it is easy - you just need to remove a bit of code...
But I remember gmaxwell saying that they wouldn't change it, because it would allow for someone to use bitcoin nodes for conducting DDoS attacks on internet servers Smiley

Not sure where it is now - the code is changing all the time... give me a sec.

Check out gocoin - my original project of full bitcoin node & cold wallet written in Go.
PGP fingerprint: AB9E A551 E262 A87A 13BB  9059 1BE7 B545 CDF3 FD0E
piotr_n
Legendary
*
Offline Offline

Activity: 2053
Merit: 1354


aka tonikt


View Profile WWW
February 24, 2017, 01:33:37 AM
 #43

It's in net.cpp

Look for:

Code:
// do not allow non-default ports, unless after 50 invalid addresses selected already
if (addr.GetPort() != Params().GetDefaultPort() && nTries < 50)
    continue;

Check out gocoin - my original project of full bitcoin node & cold wallet written in Go.
PGP fingerprint: AB9E A551 E262 A87A 13BB  9059 1BE7 B545 CDF3 FD0E
Blockchain Mechanic
Full Member
***
Offline Offline

Activity: 380
Merit: 103

Developer and Consultant


View Profile WWW
February 24, 2017, 02:41:17 AM
 #44

Great, thanks!!

Equality vs Equity...
Discord :- BlockMechanic#8560
earonesty
Newbie
*
Offline Offline

Activity: 42
Merit: 0


View Profile
March 25, 2017, 01:48:35 AM
 #45

yeah, it's more like... if it's a nonstandard port, mark it as such, and connect much less frequently....ie: only one nonstandard port connection per day... with a doubling backoffs on failure, and random time to attempt.   this would allow nonstandard ports to exist.   any web server can handle an extra 10k requests evenly spread out through the day, so no risk of ddos.   if this seems to work, and it's useful, and it doesn't turn into a mosh pit on testnet, the levels can be slowly raised to 10 nonstandard peers per day, or whatever.
Pages: « 1 2 [3]  All
  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!