Bitcoin Forum
November 18, 2024, 10:53:51 AM *
News: Check out the artwork 1Dq created to commemorate this forum's 15th anniversary
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: How to connect to only one node at startup  (Read 203 times)
ZuLeweiner (OP)
Newbie
*
Offline Offline

Activity: 2
Merit: 0


View Profile
August 03, 2018, 02:16:07 PM
 #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
AdolfinWolf
Legendary
*
Offline Offline

Activity: 1946
Merit: 1427


View Profile
August 03, 2018, 02:20:20 PM
 #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=<ip> Add a node to connect to and attempt to keep the connection open
2. -connect=<ip> 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

ZuLeweiner (OP)
Newbie
*
Offline Offline

Activity: 2
Merit: 0


View Profile
August 03, 2018, 03:16:38 PM
 #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?
ranochigo
Legendary
*
Offline Offline

Activity: 3038
Merit: 4420


Crypto Swap Exchange


View Profile
August 03, 2018, 03:54:36 PM
 #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.

█▀▀▀











█▄▄▄
▀▀▀▀▀▀▀▀▀▀▀
e
▄▄▄▄▄▄▄▄▄▄▄
█████████████
████████████▄███
██▐███████▄█████▀
█████████▄████▀
███▐████▄███▀
████▐██████▀
█████▀█████
███████████▄
████████████▄
██▄█████▀█████▄
▄█████████▀█████▀
███████████▀██▀
████▀█████████
▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
c.h.
▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
▀▀▀█











▄▄▄█
▄██████▄▄▄
█████████████▄▄
███████████████
███████████████
███████████████
███████████████
███░░█████████
███▌▐█████████
█████████████
███████████▀
██████████▀
████████▀
▀██▀▀
HeRetiK
Legendary
*
Offline Offline

Activity: 3122
Merit: 2178


Playgram - The Telegram Casino


View Profile
August 14, 2018, 08: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

▄▄███████▄▄███████
▄███████████████▄▄▄▄▄
▄████████████████████▀░
▄█████████████████████▄░
▄█████████▀▀████████████▄
██████████████▀▀█████████
████████████████████████
██████████████▄▄█████████
▀█████████▄▄████████████▀
▀█████████████████████▀░
▀████████████████████▄░
▀███████████████▀▀▀▀▀
▀▀███████▀▀███████

▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
 
Playgram.io
▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀

▄▄▄░░
▀▄







▄▀
▀▀▀░░
▄▄▄███████▄▄▄
▄▄███████████████▄▄
▄███████████████████▄
▄██████████████▀▀█████▄
▄██████████▀▀█████▐████▄
██████▀▀████▄▄▀▀█████████
████▄▄███▄██▀█████▐██████
█████████▀██████████████
▀███████▌▐██████▐██████▀
▀███████▄▄███▄████████▀
▀███████████████████▀
▀▀███████████████▀▀
▀▀▀███████▀▀▀
██████▄▄███████▄▄████████
███▄███████████████▄░░▀█▀
███████████░█████████░░
░█████▀██▄▄░▄▄██▀█████░
█████▄░▄███▄███▄░▄█████
███████████████████████
███████████████████████
██░▄▄▄░██░▄▄▄░██░▄▄▄░██
██░░░░██░░░░██░░░░████
██░░░░██░░░░██░░░░████
██▄▄▄▄▄██▄▄▄▄▄██▄▄▄▄▄████
███████████████████████
███████████████████████
 
PLAY NOW

on Telegram
[/
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!