Qortal Project

The future of blockchain platforms

User Tools

Site Tools


port_forwarding

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Last revisionBoth sides next revision
port_forwarding [06/17/2023 12:14] croweticport_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 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:** 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** for your SECOND node and HIGHER: 
 + 
 +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. 
  
 <code> <code>
Line 17: Line 19:
 </code> </code>
  
-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. +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. Do NOT remove any of the 'path' settings on Windows machines or your node will not work correctly!)
- +
-**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: +**Option 2:** If your router does **NOT offer uPNP**, you will need to configure port forwarding (on your router).
-<code>cd qortal && ./stop.sh</code>+
  
-2) Login to your router and set the IP address of the node to "STATIC" or "Reserve IP Address" or whatever verbiage your router uses for this setting. This will prevent the node’s IP address from changing and affecting all of this configuration.+1) Login to your router and set the IP address of the node to "STATIC" or "Reserve IP Address" or whatever verbiage your router uses for this setting. This will prevent the node’s IP address from changing and affecting all of this configuration.
  
-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’)
port_forwarding.txt · Last modified: 06/17/2023 12:33 by crowetic