Bitcoin Forum

Bitcoin => Development & Technical Discussion => Topic started by: matt.collier on March 30, 2013, 01:16:37 AM



Title: Update information on bitcoin.it wiki regarding testnet ports
Post by: matt.collier on March 30, 2013, 01:16:37 AM
Evidently the information on https://en.bitcoin.it/wiki/Testnet regarding the testnet ports is outdated.  Can someone in the know update this?

Thanks!

Matt

EDIT:
Faucet is closed?
https://testnet.freebitcoins.appspot.com/

And digital certificate issue make the https connection to this site painful.  Is https desirable for the testnet faucet?
https://testnet.freebitcoins.appspot.com/


Title: Re: Update information on bitcoin.it wiki regarding testnet ports
Post by: deepceleron on March 30, 2013, 08:27:33 AM
Where do you get information that the port is outdated?

Quote from: protocol.h
extern bool fTestNet;
static inline unsigned short GetDefaultPort(const bool testnet = fTestNet)
{
    return testnet ? 18333 : 8333;
}
If you need some test coins, just put up your address.

Or importprivkey cMiCLUK7Hx9hviPdfPw4GTxfqao1TTDw43jmgmmRv2TENSw9cFrw (for the OP only)


Title: Re: Update information on bitcoin.it wiki regarding testnet ports
Post by: matt.collier on March 30, 2013, 12:19:50 PM
I am using testnet on Bitcoin version v0.8.1-beta and I found I had to connect to the daemon on port 18332 instead of port 18333.

I only figured that out because I found this:  https://github.com/bitcoin/bitcoin/pull/1862


Title: Re: Update information on bitcoin.it wiki regarding testnet ports
Post by: deepceleron on March 30, 2013, 01:18:24 PM
The bitcoin client will tell you the answer to this if you ask it for help:

>bitcoin-qt -?

...
 -rpcport=<port>        Listen for JSON-RPC connections on <port> (default: 8332 or testnet: 18332)

It is true that the default RPC port change is not listed as one of the testnet changes on the Wiki. This option is in most people's bitcoin.conf file so it does not change when selecting testnet.