This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revision | Last revisionBoth sides next revision | ||
port_forwarding [06/17/2023 12:14] – crowetic | port_forwarding [06/17/2023 12:19] – further simplification and clarification crowetic | ||
---|---|---|---|
Line 7: | Line 7: | ||
===== Single or Multiple nodes With uPnP Enabled===== | ===== 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. |
- | 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**: | + | 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** |
+ | |||
+ | 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. | ||
< | < | ||
Line 17: | Line 19: | ||
</ | </ | ||
- | 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, | + | 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**, with a **DIFFERENT port for each subequent node.** (**note - if you are on WINDOWS the settings.json you will modify is located in **%localappdata%\Qortal** folder. |
- | + | ||
- | **Option 2:** If your router does NOT offer uPNP, you will need to configure port forwarding (on your router) AND disable | + | |
- | 1) Stop the core on your node by opening the command terminal and entering: | + | **Option 2:** If your router does **NOT offer uPNP**, you will need to configure port forwarding (on your router). |
- | < | + | |
- | 2) Login to your router and set the IP address of the node to " | + | 1) Login to your router and set the IP address of the node to " |
- | 4) In your router, configure port forwarding for this device: | + | 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’) |