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
Next revision
Previous revision
Next revisionBoth sides next revision
port_forwarding [01/30/2023 14:48] gisele_hport_forwarding [06/17/2023 12:14] crowetic
Line 5: Line 5:
 This can increase connections/peers for your Qortal core node(s). We will try to make this scenario as simple as we can - as there are several variables. Choose the section below that fits your situation: This can increase connections/peers for your Qortal core node(s). We will try to make this scenario as simple as we can - as there are several variables. Choose the section below that fits your situation:
  
-===== Only One Node On Your Home Network 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:** 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 2:** If your router does NOT offer uPNP, you will need to port forward AND disable the default uPnP in your 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**:
  
-1) Stop the core: +<code> 
-<code>cd qortal && ./stop.sh</code> +
- +"listenPort": 22392
-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: +
-<code>{ +
-"uPnPEnabled": false, +
-"listenPort": 12392+
 } }
 </code> </code>
  
-If you have settings already displayedlook for the uPnPEnabled sectionif it exists, simply replace 'true' with 'false'Then add the listenPort as shown above below uPnPEnabled section (or anywhere within the json settings as it doesn't have to be in a particular order - just be sure to add a comma after each listingand DO NOT have comma on the final listing.+The above settings would be fine for your SECOND nodeyou do not need to do anything for the FIRST nodeas it will run on the default port 12392Any SUBSEQUENT node you will need to add ONLY the above setting in settings.jsonwith DIFFERENT port for each subequent node. **note - if you are on WINDOWS the settings.json you will modify is located in **%localappdata%\Qortal** folder.
  
-3) 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.+**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: 
 +<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.
  
 4) In your router, configure port forwarding for this device:  4) In your router, configure port forwarding for this device: 
Line 30: Line 31:
 Protocol: TCP Protocol: TCP
  
-5) Start your core: 
-<code>cd qortal && ./start.sh</code> 
  
- +===== More Than One Node On Your Home Network (no uPnP)=====
-===== 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 40: 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. 
-  * 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 49: Line 45:
 **Node 1** Internal: 12392 External: 12392 **Node 1** Internal: 12392 External: 12392
  
-**Node 2** Internal: 12393 External: 12393+**Node 2** Internal: 12392 External: 12393
  
-**Node 3** Internal: 12394 External: 12394+**Node 3** Internal: 12392 External: 12394
  
-**Node 4** Internal: 12395 External: 12395+**Node 4** Internal: 12392 External: 12395
  
 etc.   etc.  
  
-(Just change the last digit in each number.) +(Just change the last digit in each number ONLY for the EXTERNAL port. You can leave everything else on defaults.)
- +
-3) Stop the core by entering the following command in the terminal: +
- +
-<code>cd qortal && ./stop.sh</code> +
- +
-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: +
- +
-<code>+
-"uPnPEnabled": false, +
-"listenPort": 12392 +
-}</code>+
  
-If you have settings already displayed, look for the uPnPEnabled section, if it exists, simply replace 'true' with 'false'. Then add the listenPort as shown above below uPnPEnabled section (or anywhere within the json settings as it doesn't have to be in a particular order - just be sure to add a comma after each listing, and DO NOT have a comma on the final listing. 
  
-5) Start the core on each node: 
-<code>cd qortal && ./start.sh</code> 
 =====Third Party Guides===== =====Third Party Guides=====
  
port_forwarding.txt · Last modified: 06/17/2023 12:33 by crowetic