Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [tcp]

Related to the TCP/IP protocol.

10
votes
4answers
3k views

Why doesn’t Bitcoin use UDP to do Blockpropagation?

Bitcoin uses TCP for P2P but why is UDP not used? Modern day internet has relatively low packet loss rate so UDP is reliable. Even if some packets are dropped the peers can always request for the ...
1
vote
0answers
144 views

getrawchangeaddress: dial tcp [::1]:8080: getsockopt: connection refused

I am using the decred atomic swap, and no matter what port I set the testnet to use, it says connection refused. I backpropagated the dependencies and everything seems to be working properly, what is ...
1
vote
1answer
309 views

what's the link between iSCSI protocol and "stratum+tcp attacks

I found a strange file under/var/tmp directory, named ietd.conf { "url" : "stratum+tcp://188.165.254.85:80", "user" : "46Z6dQ77i2qAapF4kjLXaaYKCB59eajwaZbmtyyPsxDXWyxPS5nfYoe5t4R7yTgsvT ...
1
vote
1answer
361 views

Is it possible to read every transaction my node relays?

I'd like to add every valid transaction my node receives to my own database. At the moment, I'm using getrawmempool every second to find new transactions, and then getting the data for them using ...
1
vote
1answer
695 views

Can exist bitcoin network with all nodes behind NAT?

If I run bitcoin client for the first time its try to make TCP connection with saved list of IPs and port 8333 -other nodes. If this nodes are behind NAT with IP 192.168.0.XX and public IP from the ...
0
votes
1answer
120 views

Why isnt a random port chosen for SEED node sockets?

I connected a node A to bitcoin testnet (Port 18333). The node discovery happens and I see couple of connections between my node A and the seed nodes. All of the sending and receiving happens between ...
1
vote
1answer
391 views

What is the function of the payload_checksum field in the Bitcoin protocol

According to the protocol specification at the Bitcoin wiki, each message header includes the first 4 bytes of sha256(sha256(payload) as a packet checksum. I suppose this checksum is used for packet ...
5
votes
2answers
1k views

Bitcoin client two-way communication

When client A opens a connection to client B, it opens its TCP connection to second client's port 8333. Is this connection solely used for A's queries and B's answers to A's query, or can B also query ...
5
votes
1answer
426 views

Bitcoin initial communication diagram

I'm trying to understand how exactly does the Bitcoin client communicate initially with another client, as I'm making my own client and learning new things about TCP protocol. As I understand, the ...
3
votes
1answer
268 views

Can a Bitcoin node send messages to a program on the same machine?

I`m currently programming some TCP communication in my custom Bitcoin client. I am wondering if it is possible for the official client to communicate with it if they are sitting on the same machine? ...