This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionNext revisionBoth sides next revision | ||
port_forwarding [09/15/2022 08:43] – gfactor | port_forwarding [06/17/2023 12:14] – 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===== |
- | In this case, you only have ONE device that is acting as a blockchain node for Qortal. The default settings that your node will have comes with uPnP enabled - uPnP is a feature that most common routers provide by default. If you are unsure, ask your service provider. With uPnP enabled in the router, and only ONE node running on your home network, you do NOT need to configure anything further on this guide. | + | **Option 1:** In this case, you only have ONE device that is acting as a blockchain node for Qortal |
- | 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) Open your settings.json - this will 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": |
- | " | + | |
} | } | ||
</ | </ | ||
- | 2) Login to your router and set the IP address of the node to STATIC. This will prevent | + | The above settings would be fine for your SECOND |
- | 3) In your router, configure port forwarding for this device: | + | **Option 2:** If your router does NOT offer uPNP, you will need to configure port forwarding (on your router) AND disable the default uPnP in your settings.json (on your node): |
+ | |||
+ | 1) Stop the core on your node by opening the command terminal and entering: | ||
+ | < | ||
+ | |||
+ | 2) Login to your router and set the IP address of the node to " | ||
+ | |||
+ | 4) 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 | ||
- | ===== More Than One Node On Your Home Network ===== | ||
- | If you have more than one node on your network, then you’ll want to do the following: | + | ===== More Than One Node On Your Home Network (no uPnP)===== |
- | 1) Open your settings.json - this will be blank which indicates | + | If you have more than one node on your network, |
- | < | + | |
- | " | + | * Set a static IP address for each node in the router. |
- | " | + | * Configure port forwarding in the router for each node. |
- | " | + | |
- | } | + | |
- | </ | + | |
- | What we are doing here, is adding a listen port entry for each node that correlates with the port forwarding in step 3 below. **Please note: the final entry does NOT have a comma after 12394. This is correct.** | + | 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. |
- | So if you had three nodes: | + | 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 |
- | " | + | |
- | " | + | |
- | " | + | |
- | " | + | |
- | } | + | |
- | </ | + | |
- | If you had four nodes: | + | **Node 2** Internal: 12392 External: 12393 |
- | < | + | **Node 3** Internal: 12392 External: 12394 |
- | " | + | |
- | " | + | |
- | " | + | |
- | " | + | |
- | " | + | |
- | } | + | |
- | </ | + | |
- | And so on… | + | **Node 4** Internal: 12392 External: 12395 |
- | 2) Login to your router and 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. | + | etc. |
- | 3) Set port forwarding | + | (Just change the last digit in each number ONLY for the EXTERNAL port. You can leave everything else on defaults.) |
- | Node 1 Internal: 12392 External: 12392 | ||
- | |||
- | Node 2 Internal: 12393 External: 12393 | ||
- | |||
- | Node 3 Internal: 12394 External: 12394 | ||
- | |||
- | etc. | ||
- | (Just change the last digit in each number.) | ||
=====Third Party Guides===== | =====Third Party Guides===== | ||