<p>Http is a protocol that works on TCP.
So if you have an http-server, it uses TCP to communicate anyway.
The better question would be "Why should they use an http-server if they don't need it?".</p>

<p>They don't need/want to show a website. They just want to send binary information easily and want to be sure that the other peer received it completly/correctly. And TCP is the perfect protocol for that.</p>

CC BY-SA 3.0
2018-01-24T17:35:15.837Z
2018-01-24T17:35:15.837Z
hardfork
<p>Why does bitcoin use TCP instead of creating a web server and using HTTP to comunicate between the nodes?</p>

<p>What's the advantage of using TCP over a HTTP server?</p>

<p>Is that important?</p>

<bitcoin-core><bitcoind><nodes><full-node>
TCP vs HTTP in Bitcoin
Vladislav Zhdanov
# TCP vs HTTP in Bitcoin

(Asked by: username_0 on 2018-01-24)

Why does bitcoin use TCP instead of creating a web server and using HTTP to comunicate between the nodes?

What's the advantage of using TCP over a HTTP server?

Is that important?

**Tags:** bitcoin-core, bitcoind, nodes, full-node


---

## 1 answers

### Answer by username_1 on 2018-01-24. Score: 5 | Accepted answer

Http is a protocol that works on TCP.
So if you have an http-server, it uses TCP to communicate anyway.
The better question would be "Why should they use an http-server if they don't need it?".

They don't need/want to show a website. They just want to send binary information easily and want to be sure that the other peer received it completly/correctly. And TCP is the perfect protocol for that.


---

