Bitcoin Forum
November 15, 2024, 02:01:24 AM *
News: Check out the artwork 1Dq created to commemorate this forum's 15th anniversary
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: Bitcoin and Altcoin default ports  (Read 1386 times)
markm (OP)
Legendary
*
Offline Offline

Activity: 3010
Merit: 1121



View Profile WWW
March 11, 2012, 06:27:08 PM
 #1

I thought altcoin makers would also find it useful to know which ports various coins already use so here is what I have so far:

Code:
=================================
Bitcoin and Altcoin default ports
=================================

[user@hostname bitcoin]# grep 'return fTestNet ?' */src/net.h
bitcoin-git/src/protocol.h:    return testnet ? 18333 : 8333;
coiledcoin-git/src/protocol.h:    return testnet ? 18368 : 8368;
devcoin-git/src/protocol.h:    return testnet ? 18333 : 8333;
doublec-iocoin-git/src/protocol.h:    return testnet ? 17333 : 7333;
litecoin-git/src/protocol.h:    return testnet ? 19333 : 9333;
newcoin/src/protocol.h:    return testnet ? 18333 : 8333;
prgcoin/src/protocol.h:    return testnet ? 18333 : 8333;
rucoin-0.4.0.1/src/protocol.h:    return testnet ? 18883 : 8883;
[user@hostname bitcoin]# grep 'return fTestNet ?' */src/net.h
bitnickel/src/net.h:inline unsigned short GetDefaultPort() { return fTestNet ? 18393 : 8393; }
botcoin-qt/src/net.h:inline unsigned short GetDefaultPort() { return fTestNet ? 18333 : 8333; }
botcoin/src/net.h:inline unsigned short GetDefaultPort() { return fTestNet ? 18353 : 8353; }
britcoin/src/net.h:inline unsigned short GetDefaultPort() { return fTestNet ? 18343 : 8343; }
cdnbitcoin/src/net.h:inline unsigned short GetDefaultPort() { return fTestNet ? 18383 : 8383; }
czbitcash/src/net.h:inline unsigned short GetDefaultPort() { return fTestNet ? 18363 : 8363; }
devcoind/src/net.h:inline unsigned short GetDefaultPort() { return fTestNet ? 62333 : 52333; }
devcoin-qt/src/net.h:inline unsigned short GetDefaultPort() { return fTestNet ? 62333 : 52333; }
devcoin/src/net.h:inline unsigned short GetDefaultPort() { return fTestNet ? 62333 : 52333; }
fairbrix-git/src/net.h:inline unsigned short GetDefaultPort() { return fTestNet ? 8591 : 8591; }
gmcbitcoin/src/net.h:inline unsigned short GetDefaultPort() { return fTestNet ? 18323 : 8323; }
grfbitcoin/src/net.h:inline unsigned short GetDefaultPort() { return fTestNet ? 18313 : 8313; }
groupcoin-qt/src/net.h:inline unsigned short GetDefaultPort() { return fTestNet ? 61333 : 51333; }
groupcoin/src/net.h:inline unsigned short GetDefaultPort() { return fTestNet ? 61333 : 51333; }
ixcoin-ixcoin-5c2d93a/src/net.h:inline unsigned short GetDefaultPort() { return fTestNet ? 18337 : 8337; } // ixcoin
old-devcoind-git/src/net.h:inline unsigned short GetDefaultPort() { return fTestNet ? 62333 : 52333; }
rucoind/src/net.h:inline unsigned short GetDefaultPort() { return fTestNet ? 18883 : 8883; }
solidcoin/src/net.h:inline unsigned short GetDefaultPort() { return fTestNet ? 17555 : 7555; }
tenebrixd-git/src/net.h:inline unsigned short GetDefaultPort() { return fTestNet ? 18333 : 8333; }
tenebrix-git/src/net.h:inline unsigned short GetDefaultPort() { return fTestNet ? 18333 : 8333; }
unbitcoin/src/net.h:inline unsigned short GetDefaultPort() { return fTestNet ? 18373 : 8373; }

-MarkM-


Browser-launched Crossfire client now online (select CrossCiv server for Galactic  Milieu)
Free website hosting with PHP, MySQL etc: http://hosting.knotwork.com/
tiker
Sr. Member
****
Offline Offline

Activity: 459
Merit: 250



View Profile WWW
March 12, 2012, 02:58:45 AM
 #2

Nice list... I haven't heard of half of those clients - time to go searching.  Wink


You missed a couple though.

GeistGeld/src/net.h:inline unsigned short GetDefaultPort() { return fTestNet ? 18333 : 8333; }

Bitchip (knowing it's 23101 from the debug log):

~/apps/clients-src$ grep '23101' bitchip/src/*.h
bitchip/src/protocol.h:    return testnet ? 23201 : 23101;
markm (OP)
Legendary
*
Offline Offline

Activity: 3010
Merit: 1121



View Profile WWW
March 12, 2012, 04:04:54 AM
 #3

Thanks! Which is the one block every ten seconds one? If that is GeistGeld that would be why I never bothered with it.

Those that used multicoin either directly or as base code put their actual default ports in the default .conf file they include, so I should also have grep'd for the values in the config files. Basically it looks that is the ones that didn't need to change it i nthe code because multicoin uses the config file to put all the unique to each chain data in so one executable can execute any of the supported chains.

At a glance it looks like the only 18333 : 8333 's in the greap that aren't multicoin-based are my newcoin and prgcoin things that aren't actually coins yet just templates to work on / work from.

-MarkM-

Browser-launched Crossfire client now online (select CrossCiv server for Galactic  Milieu)
Free website hosting with PHP, MySQL etc: http://hosting.knotwork.com/
tiker
Sr. Member
****
Offline Offline

Activity: 459
Merit: 250



View Profile WWW
March 12, 2012, 12:56:55 PM
 #4

Ya, GeistGeld has an average of 4 blocks per minute.  I'm merge mining it here with everything else I can find.
markm (OP)
Legendary
*
Offline Offline

Activity: 3010
Merit: 1121



View Profile WWW
March 12, 2012, 04:36:47 PM
 #5

Ya, GeistGeld has an average of 4 blocks per minute.  I'm merge mining it here with everything else I can find.

I grabbed it from github, but it does not seem to have set OurChainID anywhere. WHat ID are you using for it and how did you find out which one it is supposed to be using?

-MarkM-

Browser-launched Crossfire client now online (select CrossCiv server for Galactic  Milieu)
Free website hosting with PHP, MySQL etc: http://hosting.knotwork.com/
tiker
Sr. Member
****
Offline Offline

Activity: 459
Merit: 250



View Profile WWW
March 12, 2012, 06:20:19 PM
 #6

Don't know... not sure what "OurChainID" is...  the only chain id I know of for GG reports as 0:


:~/apps$ ./clients/geistgeld getauxblock
{
    "target" : "0000000000000000000000000000000000000000000000000000ffff0f000000",
    "hash" : "80bbb249e96705418b81242e959f1ff8097477c3d21a601be5730e5f705ea6b5",
    "chainid" : 0
}

markm (OP)
Legendary
*
Offline Offline

Activity: 3010
Merit: 1121



View Profile WWW
March 12, 2012, 06:36:35 PM
Last edit: March 12, 2012, 06:48:07 PM by markm
 #7

Yeah, thats because bitcoin's chain ID is zero and the default config file you get with GeistGeld doesn't set the OurChainID setting.

I am not sure its kosher to use the same ID as another chain, especially if both chains are going to be merged-mined together.

I'm not positive its not kosher either though.

-MarkM-

Browser-launched Crossfire client now online (select CrossCiv server for Galactic  Milieu)
Free website hosting with PHP, MySQL etc: http://hosting.knotwork.com/
tiker
Sr. Member
****
Offline Offline

Activity: 459
Merit: 250



View Profile WWW
March 12, 2012, 06:46:59 PM
 #8

So far so good.. Smiley

Been running p2pool with GeistGeld merged in for a couple of weeks now and get credit for both so it seems to work ok.
markm (OP)
Legendary
*
Offline Offline

Activity: 3010
Merit: 1121



View Profile WWW
March 12, 2012, 06:49:55 PM
 #9

What block are you up to? I tried different settings for the OurChainID, like the 6 that is a gap in the list of chains, and the 8 that other than outlier coiledcoin at 16 would be next on the list, but each time the blockchain became shorter, and changing it back to zero the blockchain still stayed shorter than the long I'd seen it.

-MarkM-

Browser-launched Crossfire client now online (select CrossCiv server for Galactic  Milieu)
Free website hosting with PHP, MySQL etc: http://hosting.knotwork.com/
tiker
Sr. Member
****
Offline Offline

Activity: 459
Merit: 250



View Profile WWW
March 12, 2012, 06:57:24 PM
 #10

:~/apps$ ./clients/geistgeld getinfo
{
    "version" : 36977,
    "balance" : 156.31440700,
    "blocks" : 957298,
    "connections" : 5,
    "proxy" : "",
    "generate" : false,
    "genproclimit" : -1,
    "difficulty" : 0.06249911,
    "hashespersec" : 0,
    "Likely to be Geistnet?" : true,
    "keypoololdest" : 1331547600,
    "paytxfee" : 0.00000000,
    "errors" : ""
}

Both my windows client and linux client are at the same block number and show chainid 0
markm (OP)
Legendary
*
Offline Offline

Activity: 3010
Merit: 1121



View Profile WWW
March 13, 2012, 03:13:36 PM
 #11

Thanks. Okay I set mine to chain ID zero too and left it overnight to catch up with the blockchain, looks like I am now in synch.

Have you tried the RUcoin that I added the merged-mining ability to? If not, might you be able to so? I would like to make sure it works and if not make whatever fises it might need. It is at https://sourceforge.net/projects/galacticmilieu/files/ in the RUCoin subdirectory.

-MarkM-

Browser-launched Crossfire client now online (select CrossCiv server for Galactic  Milieu)
Free website hosting with PHP, MySQL etc: http://hosting.knotwork.com/
tiker
Sr. Member
****
Offline Offline

Activity: 459
Merit: 250



View Profile WWW
March 13, 2012, 04:34:55 PM
 #12

I've been running the merge-mining client from the rucoin site.

I can give yours a try this evening when I get home.
markm (OP)
Legendary
*
Offline Offline

Activity: 3010
Merit: 1121



View Profile WWW
March 13, 2012, 05:38:21 PM
 #13

I've been running the merge-mining client from the rucoin site.

I can give yours a try this evening when I get home.

They have one that can be merged mined as an auxilliary chain like all the other merged mined alcoins, so you can mine BTC as primary chain and all the alts including RUcoin as altchains??? I thought all they had was a copy based on bitcoin such that like bitcoin it can be used as PRIMARY chain, thus that theirs could not be merged-mined alongside bitcoin???

-MarkM-

Browser-launched Crossfire client now online (select CrossCiv server for Galactic  Milieu)
Free website hosting with PHP, MySQL etc: http://hosting.knotwork.com/
tiker
Sr. Member
****
Offline Offline

Activity: 459
Merit: 250



View Profile WWW
March 13, 2012, 06:38:28 PM
 #14

I've currently got their 5.x linux binary running and merged with my p2pool install (--mergedurl).  P2Pool isn't complaining (as if it were invalid or anything) but I haven't successfully solved any blocks on it either yet.

The getauxblock call is what p2pool is calling to get the merged mining data from the alt chains (i think).

I don't know if is the proper client to be using though with the source being 4.x and this client not being compatible with 4.x for p2p connections.  (See my other post in the RuCoin thread.)
Tittiez
Hero Member
*****
Offline Offline

Activity: 686
Merit: 500



View Profile
May 17, 2012, 01:18:26 AM
 #15

Very useful, thanks.
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!