Guest User

Nodes

a guest
Jan 9th, 2023
1,917
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.91 KB | None | 0 0
  1. # _ _ ______ _ __ ____ _____ _ __ _____ _ _ _ _
  2. # | | | ||___ / | | / / / ___|_ _| | / /| _ || \ | (_) |
  3. # | | | | / / _ __ _ __ | |/ / / /___ | | | |/ / \ V / | \| |_| |_
  4. # | | | | / / | '__| '_ \| \ | ___ \ | | | \ / _ \ | . ` | | __|
  5. # |_| |_|./ /__| | | | | | |\ \| \_/ |_| |_| |\ \| |_| || |\ | | |_
  6. # (_) (_)\_____/_| |_| |_\_| \_/\_____/\___/\_| \_/\_____/\_| \_/_|\__|
  7.  
  8. #########################################################################################################################
  9.  
  10. "What are nodes? What do they do?"
  11.  
  12. #########################################################################################################################
  13.  
  14. A node is any device hosting a full or pruned copy of the blockchain
  15. There are many configurations, but they are all running the program "monerod"
  16. It can be found in any of the binary releases on getmonero.org/downloads
  17. and the source code can be found at https://github.com/monero-project/monero.git
  18.  
  19. "What kind of configurations, though? I'm not sure what you mean."
  20. monerod by itself does 2 things, Talks to other nodes on the network (p2p) and talks to wallet clients (rpc).
  21. When it talks to the other nodes it uploads, downloads and validates new blocks of transactions,
  22. when it talks to wallet clients it shows them where funds have moved since the wallet last checked in, so the wallet knows how much it has to work with. It also handles new transactions from those connected wallets.
  23.  
  24. Out of the box, it is already an incredibly secure and private system, but that privacy and security can be even further augmented based on how you run your node.
  25.  
  26. A few examples
  27.  
  28. >RPC over tor or i2p, to further obfuscate sender and recipient.
  29. >p2p forwarded, RPC not forwarded (contribute to network but can only spend at home)
  30. >p2p and RPC forwarded, with a login necessary for RPC (can easily allow only select individuals to use RPC)
  31. >p2p and RPC forwarded, with a low bandwidth cap and a low cap on in/out peers (for a node with older or weaker hardware)
  32.  
  33. etcetera, etcetera.
  34.  
  35. READ THESE GUIDES, SAVE THE PAGES LOCALLY.
  36. https://monerodocs.org/interacting/monero-config-file/
  37. https://monerodocs.org/interacting/monerod-reference/
  38. https://www.getmonero.org/resources/user-guides/node-i2p-zero.html
  39. https://monerodocs.org/running-node/open-node-tor-onion/
  40.  
  41. "How large is the blockchain?"
  42. Last check at block height 2796018 (Jan 9, 2023), 147.2GB
  43.  
  44. #############################################################################################################################################################
  45.  
  46. "Okay so I figured out the wallet and the node, my node is fully synced, how can I connect to my node with other devices, let other people use my node or support the network by allowing other nodes to talk to mine?"
  47.  
  48. ##############################################################################################################################################################
  49.  
  50. To do this you'll need to know the IP of your node on your local network, it will be 192.168.something.something. To find it, open a terminal and run
  51. >linux
  52. ip a
  53. >windows
  54. ipconfig
  55. and look for the one starting with 192.168
  56. (you can also enter 192.186.1.1 into your URL bar on any browser and *should* end up at your routers dashboard, where you *should* be able to check this as well)
  57.  
  58. then you can take that IP and run monerod like this
  59. monerod --rpc-bind-ip 192.168.1.xxx --rpc-bind-port (port number) --confirm-external-bind
  60. If you don't specify an IP it will assume 127.0.0.1 (localhost).
  61. If you don't specify or don't bind a port it will assume port 18081 for RPC and 18080 for p2p, you can use different ports if you prefer.
  62.  
  63. Also, you can use "--p2p-bind-ip" and "--p2p-bind-port" using the same IP and port 18080 (or whichever port outside of the range of "known" ports) to allow your node to speak to other nodes.
  64.  
  65. Then you can connect to it while on your home network. How EXACTLY you connect to it will vary depending on what you are connecting with, for monero-wallet-cli, you need to add "--daemon-address (IP YOU BOUND THE NODE TO):(PORT YOU BOUND THE NODE TO)"
  66.  
  67. To use it outside of your home network you will need to set up port forwarding rules.
  68. How you do that varies depending on your ISP and is mostly in your hands, but it's still quite simple, go to your routers dashboard (192.168.1.1) and poke around.
  69. You are simply forwarding all requests made from the outside internet to your routers IP on ports 18081 and 18080 (or whichever ports you specified to monerod) to your nodes local IP on the same ports
  70. When that is set up you simply specify your routers IP and the correct port to whatever wallet client you are connecting from, wherever you are connecting from in the world.
  71.  
  72. ##############################################################################################################################################################
  73.  
Add Comment
Please, Sign In to add comment