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 [01/31/2023 05:40] – old revision restored (01/30/2023 18:11) gfactor | ||
---|---|---|---|
Line 5: | Line 5: | ||
This can increase connections/ | This can increase connections/ | ||
- | ===== Only One Node On Your Home Network ===== | + | ===== Only One Node On Your Home Network |
- | 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 the default uPnP in your settings.json: | + | **Option 2:** If your router does NOT offer uPNP, you will need to port forward AND disable the default uPnP in your settings.json: |
- | 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: | + | 1) Stop the core: |
+ | < | ||
+ | |||
+ | 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: | ||
< | < | ||
" | " | ||
- | " | + | " |
} | } | ||
</ | </ | ||
- | 2) Login to your router and set the IP address of the node to STATIC. This will prevent | + | If you have settings already displayed, look for the uPnPEnabled section, if it exists, simply replace ' |
- | 3) In your router, configure port forwarding for this device: | + | 3) 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 | ||
+ | |||
+ | 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 do the following: | + | If you have more than one node on your network, then you’ll want to: |
+ | |||
+ | * Set a static IP address for each node in the router. | ||
+ | * 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) Open your settings.json - this will be blank which indicates you have the default settings. You will then modify your json settings. Below is an example | + | 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. |
- | < | + | |
- | " | + | |
- | " | + | |
- | " | + | |
- | } | + | |
- | </ | + | |
- | What we are doing here, is adding a listen | + | 2) Set port forwarding |
- | So if you had three nodes: | + | **Node 1** Internal: 12392 External: 12392 |
+ | |||
+ | **Node 2** Internal: 12393 External: 12393 | ||
+ | |||
+ | **Node 3** Internal: 12394 External: 12394 | ||
+ | |||
+ | **Node 4** Internal: 12395 External: 12395 | ||
+ | |||
+ | etc. | ||
+ | |||
+ | (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 | ||
+ | |||
+ | this would be for **Node 1** matching the port forwarding entry above: | ||
< | < | ||
" | " | ||
- | " | + | " |
- | " | + | }</ |
- | " | + | |
- | } | + | |
- | </ | + | |
- | If you had four nodes: | + | this would be for **Node 2** matching the port forwarding entry above: |
< | < | ||
" | " | ||
- | " | + | " |
- | "listenPort: 12393, | + | }</ |
- | " | + | |
- | " | + | |
- | } | + | |
- | </ | + | |
- | And so on… | + | this would be for **Node 3** matching the port forwarding entry above: |
- | 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. | + | < |
+ | " | ||
+ | " | ||
+ | }</ | ||
- | 3) Set port forwarding | + | this would be for **Node 4** matching the port forwarding |
- | Node 1 Internal: 12392 External: 12392 | + | < |
+ | " | ||
+ | " | ||
+ | }</ | ||
- | Node 2 Internal: 12393 External: 12393 | + | If you have settings already displayed, look for the uPnPEnabled section, if it exists, simply replace ' |
- | Node 3 Internal: 12394 External: 12394 | + | 5) Start the core on each node: |
- | + | < | |
- | etc. | + | |
- | + | ||
- | (Just change the last digit in each number.) | + | |
=====Third Party Guides===== | =====Third Party Guides===== | ||