Skip to main content

Questions tagged [tcp]

Related to the TCP/IP protocol.

Filter by
Sorted by
Tagged with
1 vote
3 answers
227 views

What protocol do bitcoin nodes use to talk to each other?

I assume it's TCP, but is there some other software used to send and receive data? So how would I program a very simple C++ program that sends a test message to a node?
apchrkey's user avatar
2 votes
0 answers
222 views

How to use `blockchain.scripthash.subscribe` from a tcp socket in Electrum server

As a personal exercise I want to write a minimal copy of BTCPayServer. I decided to use Electrum server instead of a node to fetch information from the network. My final goal is to be able to track ...
Andrés's user avatar
  • 121
0 votes
0 answers
114 views

How does a Bitcoin node connect to more than 65536 other nodes?

I found on the internet that Bitcoin uses TCP to communicate with other nodes, connecting to them and sending messages. But a computer cannot bind more than 65536 sockets (because of TCP ports), so ...
Papaulo's user avatar
2 votes
1 answer
276 views

SPV client TCP connection in python

I am trying to implement an SPV client in python (for my own learning). I want to start by making a simple TCP connection to a full node, but I either cannot get a response to my version message, or ...
anne1234's user avatar
1 vote
1 answer
353 views

Problem with the first Initialization of my LN node, dial tcp my-external-ip:9735: connect: connection timed out

Background I was following 402 Payment Required's LN video and everything was good until the moment of the first Initialization of my LN node. I got an error: dial tcp my-external-ip:9735: connect: ...
scott.carter.2020's user avatar
0 votes
1 answer
60 views

Finding wallet address on peer 2 peer network

does anyone here knows how to find the addresses from a tx object from the bitcoin protocol documentation on the peer to peer network?? in the document it says that tx message is only consist of ...
nicholas___'s user avatar
14 votes
4 answers
5k 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 ...
user2584960's user avatar
1 vote
0 answers
158 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 ...
Chant's user avatar
  • 21
1 vote
1 answer
342 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 ...
Inès Belhouchet's user avatar
1 vote
1 answer
494 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 ...
inersha's user avatar
  • 3,185
1 vote
1 answer
2k 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 ...
sytolk's user avatar
  • 113
0 votes
1 answer
194 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 ...
Guhan S's user avatar
  • 85
1 vote
1 answer
600 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 ...
Jori's user avatar
  • 1,580
6 votes
2 answers
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 ...
ThePiachu's user avatar
  • 43.1k
5 votes
1 answer
476 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 ...
ThePiachu's user avatar
  • 43.1k
3 votes
1 answer
284 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? ...
ThePiachu's user avatar
  • 43.1k