Author

Topic: How to connect to only one node at startup (Read 205 times)

legendary
Activity: 3122
Merit: 2178
Playgram - The Telegram Casino
August 14, 2018, 03:56:08 AM
#5
I have one other question. Is there a difference when it says outbound/inbound connection? If yes, how can I ensure that my wallet will always have inbound connection?
Theoretically, yes. Inbound connections are nodes that has initiated the connection and are connecting to your node. Outbound connections are connections initiated  by your node to other nodes. The polarity doesn't really matter; your node and their node are both receiving and relaying information.

You can port-forward TCP 8333 and other nodes will be able to find and connect to you.
How do you port-forward TCP 8333.... port-forward=8333?

If you are merely connecting to other devices within your own home network (as per OP) setting up port forwarding should not be required. You only need to set up port forwarding if you want to connect to other nodes on the internet, assuming the in and outgoing connections get blocked by your router.

To set up port forwarding on your router googling for the name of your router / router brand plus the phrase "port forwarding" should yield helpful results. For a more general guide, see here: https://www.wikihow.com/Set-Up-Port-Forwarding-on-a-Router
legendary
Activity: 3038
Merit: 4418
Crypto Swap Exchange
August 03, 2018, 10:54:36 AM
#4
I have one other question. Is there a difference when it says outbound/inbound connection? If yes, how can I ensure that my wallet will always have inbound connection?
Theoretically, yes. Inbound connections are nodes that has initiated the connection and are connecting to your node. Outbound connections are connections initiated  by your node to other nodes. The polarity doesn't really matter; your node and their node are both receiving and relaying information.

You can port-forward TCP 8333 and other nodes will be able to find and connect to you.
newbie
Activity: 2
Merit: 0
August 03, 2018, 10:16:38 AM
#3
Thank you. That's exactly what I want.

I have one other question. Is there a difference when it says outbound/inbound connection? If yes, how can I ensure that my wallet will always have inbound connection?
legendary
Activity: 1946
Merit: 1427
August 03, 2018, 09:20:20 AM
#2
I have a computer with synced blockchain so I'd like to connect to it via its internal IP and sync my blockchain on another laptop. For that I need to connect to that computer ONLY. However, I don't know how to go about it.

I read that adding to config file "connect=..." will connect the wallet ONLY to that node. But that didn't work. I tried to set maxconnections=0 and maxoutboundconnection=0 but it didn't do anything. It almost seemed like it didn't register my config file.

Adding the node after the start of wallet worked fine.

My question: what to write in my bitcoin.conf so that my wallet connects to my pc only?

Thanks

I'm not sure if i'm really understanding what you're asking, but if you want to connect to just 1 particular node, i think you can use something along the lines of:

Quote
1. -addnode= Add a node to connect to and attempt to keep the connection open
2. -connect= Connect only to the specified node(s)
https://bitcoin.stackexchange.com/questions/41426/how-do-i-configure-bitcoin-core-to-connect-always-to-a-particular-node
newbie
Activity: 2
Merit: 0
August 03, 2018, 09:16:07 AM
#1
I have a computer with synced blockchain so I'd like to connect to it via its internal IP and sync my blockchain on another laptop. For that I need to connect to that computer ONLY. However, I don't know how to go about it.

I read that adding to config file "connect=..." will connect the wallet ONLY to that node. But that didn't work. I tried to set maxconnections=0 and maxoutboundconnection=0 but it didn't do anything. It almost seemed like it didn't register my config file.

Adding the node after the start of wallet worked fine.

My question: what to write in my bitcoin.conf so that my wallet connects to my pc only?

Thanks
Jump to: