This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revision | Next revisionBoth sides next revision | ||
port_forwarding [01/31/2023 05:42] – gfactor | port_forwarding [06/17/2023 12:13] – cleaned up and made much easier to understand. crowetic | ||
---|---|---|---|
Line 8: | Line 8: | ||
**Option 1:** In this case, you only have ONE device that is acting as a blockchain node for Qortal AND your router has uPnP enabled. 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 AND your router has uPnP enabled. 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. | ||
+ | |||
+ | 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 in **settings.json**: | ||
+ | |||
+ | < | ||
+ | { | ||
+ | " | ||
+ | } | ||
+ | </ | ||
+ | |||
+ | The above settings would be fine for your SECOND node, you do not need to do anything for the FIRST node, as it will run on the default port 12392. Any SUBSEQUENT node you will need to add ONLY the above setting in settings.json, | ||
**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): | **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): | ||
Line 14: | Line 24: | ||
< | < | ||
- | 2) Open your settings.json which is found in the ' | + | 2) Login to your router and set the IP address of the node to " |
- | + | ||
- | < | + | |
- | " | + | |
- | " | + | |
- | } | + | |
- | </ | + | |
- | + | ||
- | 3) Login to your router and set the IP address of the node to " | + | |
4) In your router, configure port forwarding for this device: | 4) In your router, configure port forwarding for this device: | ||
Line 29: | Line 31: | ||
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 38: | Line 38: | ||
* 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 AND add the listenPort. | ||
- | * Start the core on each node. | ||
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. | 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. | ||
Line 47: | Line 45: | ||
**Node 1** Internal: 12392 External: 12392 | **Node 1** Internal: 12392 External: 12392 | ||
- | **Node 2** Internal: | + | **Node 2** Internal: |
- | **Node 3** Internal: | + | **Node 3** Internal: |
- | **Node 4** Internal: | + | **Node 4** Internal: |
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 and click save: | + | |
- | + | ||
- | this would be for **Node 1** matching | + | |
- | + | ||
- | < | + | |
- | " | + | |
- | " | + | |
- | }</ | + | |
- | + | ||
- | this would be for **Node 2** matching the port forwarding entry above: | + | |
- | + | ||
- | < | + | |
- | " | + | |
- | " | + | |
- | }</ | + | |
- | + | ||
- | this would be for **Node 3** matching the port forwarding entry above: | + | |
- | + | ||
- | < | + | |
- | " | + | |
- | " | + | |
- | }</ | + | |
- | + | ||
- | this would be for **Node 4** matching the port forwarding entry above: | + | |
- | + | ||
- | < | + | |
- | " | + | |
- | " | + | |
- | }</ | + | |
- | + | ||
- | 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===== |