<p>I was able to answer my own question through the Nxt dev forum. </p>

<p><a href="https://nxtforum.org/general/peer-protocol-tcp-or-http/msg181766/" rel="nofollow">https://nxtforum.org/general/peer-protocol-tcp-or-http/msg181766/</a></p>

<p>Adding it  here for others that may have the same question:</p>

<p>Up to version 1.4 Nxt used HTTP for peer communication. Starting with version 1.5 they are moving to WebSocket for peer communication</p>

CC BY-SA 3.0
2015-06-04T05:59:39.027Z
[Link to the forum article](https://nxtforum.org/general/peer-protocol-tcp-or-http/)
mystcoin
CC BY-SA 3.0
2015-06-07T19:57:37.103Z
Both HTTP and WebSocket protocols are built on top of TCP.
Greg Hewgill
CC BY-SA 3.0
2015-06-10T16:32:11.977Z
I'm well aware of how the protocol stack works.  But there is a difference in how an HTTP client and a TCP client work.  That was the purpose of my question - to determine what approach they were using for the client
dbryson
CC BY-SA 3.0
2015-06-03T19:46:58.303Z
2015-06-04T11:25:05.670Z
2015-06-04T11:25:05.670Z
dbryson
<p>In the NXT documentation it says that the Peer protocol uses TCP.  But looking through the code all I see is HTTP.  Does NXT use HTTP or TCP for the Peer protocol?</p>

CC BY-SA 3.0
2015-06-03T12:09:24.107Z
IMO, NXT is out of topic here.
Jonas Schnelli
CC BY-SA 3.0
2015-06-03T12:59:03.377Z
@JonasSchnelli Community consensus has been that other crypto-currencies are on-topic, see e.g. [A](http://meta.bitcoin.stackexchange.com/q/15/5406), [B](http://meta.bitcoin.stackexchange.com/q/89/5406), [C](http://meta.bitcoin.stackexchange.com/q/335/5406). [tag:NXT] being very similar to Bitcoin in design makes it a decent fit here. Also, it already has almost seventy questions here. If you wish to weigh in on the discussion about the scope of the site, feel free to create a [meta] post.
Murch
CC BY-SA 3.0
2015-06-03T13:05:07.367Z
Also see the first paragraph of our [tour] which states "With your help, we're working together to build a library of detailed answers to every question about Cryptocurrencies such as e.g. Bitcoin, Namecoin, Litecoin, Ripple, Zerocoin, Dogecoin, Ethereum, and NXT."
Murch
<nxt>
Nxt: TCP, HTTP, or both
dbryson
# Nxt: TCP, HTTP, or both

(Asked by: username_0 on 2015-06-03)

In the NXT documentation it says that the Peer protocol uses TCP. But looking through the code all I see is HTTP. Does NXT use HTTP or TCP for the Peer protocol?

**Tags:** nxt

> **Comments:**
> **username_1**: IMO, NXT is out of topic here.  
> **username_2**: @JonasSchnelli Community consensus has been that other crypto-currencies are on-topic, see e.g. [A](http://meta.bitcoin.stackexchange.com/q/15/5406), [B](http://meta.bitcoin.stackexchange.com/q/89/5406), [C](http://meta.bitcoin.stackexchange.com/q/335/5406). [tag:NXT] being very similar to Bitcoin in design makes it a decent fit here. Also, it already has almost seventy questions here. If you wish to weigh in on the discussion about the scope of the site, feel free to create a [meta] post.  
> **username_2**: Also see the first paragraph of our [tour] which states "With your help, we're working together to build a library of detailed answers to every question about Cryptocurrencies such as e.g. Bitcoin, Namecoin, Litecoin, Ripple, Zerocoin, Dogecoin, Ethereum, and NXT."  

---

## 1 answers

### Answer by username_0 on 2015-06-03. Score: 2

I was able to answer my own question through the Nxt dev forum.

<https://nxtforum.org/general/peer-protocol-tcp-or-http/msg181766/>

Adding it here for others that may have the same question:

Up to version 1.4 Nxt used HTTP for peer communication. Starting with version 1.5 they are moving to WebSocket for peer communication

> **Comments:**
> **username_3**: [Link to the forum article](https://nxtforum.org/general/peer-protocol-tcp-or-http/)  
> **username_4**: Both HTTP and WebSocket protocols are built on top of TCP.  
> **username_0**: I'm well aware of how the protocol stack works.  But there is a difference in how an HTTP client and a TCP client work.  That was the purpose of my question - to determine what approach they were using for the client  

---

