This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionLast revisionBoth sides next revision | ||
port_forwarding [01/30/2023 19:38] – gfactor | port_forwarding [06/17/2023 12:19] – further simplification and clarification crowetic | ||
---|---|---|---|
Line 5: | Line 5: | ||
This can increase connections/ | This can increase connections/ | ||
- | ===== Only One Node On Your Home Network | + | ===== Single or Multiple nodes With uPnP Enabled===== |
- | **Option 1:** In this case, you only have ONE device that is acting as a blockchain | + | **Option 1:** If you have only ONE node, and your router has **uPnP enabled**, you will not need to do anything, your single node will simply start obtaining incoming connections. |
- | **Option 2:** If your router does NOT offer uPNP, you will need to port forward AND disable | + | If you ARE going to use uPnP, **you can have MULTIPLE nodes** on the same LAN obtaining incoming connections **via uPnP** by simply modifying a SINGLE setting |
- | 1) Stop the core: | + | Simply edit **settings.json** for the nodes ASIDE FROM THE FIRST NODE, and change the listenPort for the subsequent nodes, below is an example for the second node on the LAN. |
- | < | + | |
- | 2) Open your settings.json - this may be blank which indicates you have the default settings. You will then copy and paste the code below into the settings.json and click save: | + | < |
- | < | + | { |
- | "uPnPEnabled": | + | "listenPort": |
} | } | ||
</ | </ | ||
- | If you have settings | + | The above settings |
- | 3) Login to your router | + | **Option 2:** If your router |
- | 4) In your router, configure port forwarding for this device: | + | 1) Login to your router and set the IP address of the node to " |
+ | |||
+ | 2) In your router, configure port forwarding for this device: | ||
Inbound: 12392 (sometimes ‘inbound’ is titled ‘internal’) | Inbound: 12392 (sometimes ‘inbound’ is titled ‘internal’) | ||
Outbound 12392 (sometimes ‘outbound’ is titled ‘external’) | Outbound 12392 (sometimes ‘outbound’ is titled ‘external’) | ||
Protocol: TCP | Protocol: TCP | ||
- | 5) Start your core: | ||
- | < | ||
- | + | ===== More Than One Node On Your Home Network | |
- | ===== More Than One Node On Your Home Network ===== | + | |
If you have more than one node on your network, then you’ll want to: | If you have more than one node on your network, then you’ll want to: | ||
Line 39: | Line 37: | ||
* Set a static IP address for each node in the router. | * Set a static IP address for each node in the router. | ||
* Configure port forwarding in the router for each node. | * Configure port forwarding in the router for each node. | ||
- | * Stop the core, then change the json settings on each node to disable uPnP | ||
- | * Start the core on each node. | ||
- | 1) Login to your router and set the IP address of the node to "STATIC" or " | + | 1) Set the IP address of each node to STATIC. This will prevent the node’s IP address from changing and affecting all of this configuration. |
- | 2) Set port forwarding for each node as shown in the following. Internal | + | 2) Set port forwarding for each node as shown in the following. Internal and external for each node will be unique and NOT match the other nodes: |
**Node 1** Internal: 12392 External: 12392 | **Node 1** Internal: 12392 External: 12392 | ||
Line 56: | Line 52: | ||
etc. | etc. | ||
- | (Just change the last digit in each number.) | + | (Just change the last digit in each number |
- | 3) Stop the core by entering the following command in the terminal: | ||
- | |||
- | < | ||
- | |||
- | Open your settings.json - this may be blank which indicates you have the default settings. You will then copy and paste the code below into the settings.json for each node and click save: | ||
- | |||
- | < | ||
- | " | ||
- | }</ | ||
- | |||
- | If you have settings already displayed, look for the uPnPEnabled section, if it exists, simply replace ' | ||
- | |||
- | 5) Start the core on each node: | ||
- | < | ||
=====Third Party Guides===== | =====Third Party Guides===== | ||
Line 92: | Line 74: | ||
Look at the second IP address with a dynamic port. This is UPnP working. Instead of 12392 , it has opened a 44380 port for TCP handshake / connect / ACK. | Look at the second IP address with a dynamic port. This is UPnP working. Instead of 12392 , it has opened a 44380 port for TCP handshake / connect / ACK. | ||
+ |