<p>The Bitcoin.org client will try to communicate to other nodes via port 8333 and those communications follow the <a href="http://en.bitcoin.it/wiki/Protocol_specification" rel="noreferrer">Bitcoin protocol</a>.   If an explicit connection is given (IP address and port) the port setting can be overridden to use any port.</p>

<p>The bitcoin.org client can be configured to accept <a href="http://en.bitcoin.it/wiki/API_tutorial_%28JSON-RPC%29#JSON-RPC" rel="noreferrer">JSON-RPC communications</a>, and when that is enabled will, by default, be on port 8332.  Earlier versions of Bitcoin Core permitted this to be secured with <a href="http://en.bitcoin.it/wiki/RPC_SSL" rel="noreferrer">SSL</a> communications using the same port or a different port, however that capability has since been removed.  </p>

CC BY-SA 3.0
2016-06-27T12:43:32.803Z
I would add that both ports are TCP (as opposed to UDP), and are listed in wikipedia: https://en.wikipedia.org/wiki/List_of_TCP_and_UDP_port_numbers
knocte
CC BY-SA 4.0
2019-05-14T08:40:03.037Z
SSL has been removed from Bitcoin since this answer was posted. It is now recommended to setup an ssh tunnel for encrypting the JSON-RPC connection.
alexg
CC BY-SA 4.0
2012-12-13T00:51:08.330Z
2019-05-16T02:23:43.990Z
2019-05-16T02:23:43.990Z
Stephen Gornick
<p>What is the difference between the protocol and commands used on default ports 8332 and port 8333?</p>

<p>From what I gather, port 8332 is the RPC port, it's "sensitive", only allowed by local host by default, and it has one username &amp; password.</p>

<p>On the other hand port 8333 is some kind of P2P port that is used with Bitcoin transaction replication.</p>

<p>Can anyone clarify the official names, purposes, and security of each of these ports?  </p>

<p>Which one uses JSON, and which is Binary?</p>

CC BY-SA 4.0
2018-08-22T12:09:22.487Z
when i try to connect to my json rpc remotely i get the following errors

port 8333: "RemoteDisconnected: Remote end closed connection without response" 
port 8332: [Errno 61] Connection refused

any ideas if this is a firewall issue on my Ubuntu droplet or ?
Sonic Soul
CC BY-SA 4.0
2018-08-22T20:25:22.993Z
@SonicSoul not sure, I've left Bitcoin for the most part, pursuing technologies that won't consume as much electricity.
makerofthings7
<bitcoind><json-rpc><port>
What is the difference between the rpc port 8332 and port 8333?
makerofthings7
# What is the difference between the rpc port 8332 and port 8333?

(Asked by: username_0 on 2012-12-12)

What is the difference between the protocol and commands used on default ports 8332 and port 8333?

From what I gather, port 8332 is the RPC port, it's "sensitive", only allowed by local host by default, and it has one username & password.

On the other hand port 8333 is some kind of P2P port that is used with Bitcoin transaction replication.

Can anyone clarify the official names, purposes, and security of each of these ports?

Which one uses JSON, and which is Binary?

**Tags:** bitcoind, json-rpc, port

> **Comments:**
> **username_1**: when i try to connect to my json rpc remotely i get the following errors  port 8333: "RemoteDisconnected: Remote end closed connection without response"  port 8332: [Errno 61] Connection refused  any ideas if this is a firewall issue on my Ubuntu droplet or ?  
> **username_0**: @username_1 not sure, I've left Bitcoin for the most part, pursuing technologies that won't consume as much electricity.  

---

## 1 answers

### Answer by username_2 on 2012-12-13. Score: 36 | Accepted answer

The Bitcoin.org client will try to communicate to other nodes via port 8333 and those communications follow the [Bitcoin protocol](http://en.bitcoin.it/wiki/Protocol_specification). If an explicit connection is given (IP address and port) the port setting can be overridden to use any port.

The bitcoin.org client can be configured to accept [JSON-RPC communications](http://en.bitcoin.it/wiki/API_tutorial_%28JSON-RPC%29#JSON-RPC), and when that is enabled will, by default, be on port 8332. Earlier versions of Bitcoin Core permitted this to be secured with [SSL](http://en.bitcoin.it/wiki/RPC_SSL) communications using the same port or a different port, however that capability has since been removed.

> **Comments:**
> **username_3**: I would add that both ports are TCP (as opposed to UDP), and are listed in wikipedia: https://en.wikipedia.org/wiki/List_of_TCP_and_UDP_port_numbers  
> **username_4**: SSL has been removed from Bitcoin since this answer was posted. It is now recommended to setup an ssh tunnel for encrypting the JSON-RPC connection.  

---

