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 [09/24/2022 01:37] gfactorport_forwarding [01/31/2023 05:40] – old revision restored (01/30/2023 18:11) gfactor
Line 37: Line 37:
  
 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:
- +  
-  * Stop the core, then change the json settings on each node. **Please note: the json will have a unique entry on each of your nodes.** +  * Set a static IP address for each node in the router.  
-  * Disable uPnP in the router (if it is a feature in your router and already enabled)+  * 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.   * Start the core on each node.
  
-1) Stop 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. 
 + 
 +2) Set port forwarding for each node as shown in the following. Internal and external for each node will be unique and NOT match the other 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: 
 <code>cd qortal && ./stop.sh</code> <code>cd qortal && ./stop.sh</code>
  
-2) Pay attention to which node you are going to number as Node 1, Node 2, and so on. Each node will have a DIFFERENT listenPort setting. Open your settings.json for Node 1 - this will be blank which indicates you have the default settings. You will then modify your json settings+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 the port forwarding entry above:
  
-**Node 1:**  
 <code>{ <code>{
 "uPnPEnabled": false, "uPnPEnabled": false,
 "listenPort": 12392 "listenPort": 12392
-} +}</code>
-</code>+
  
-What we are doing here, is adding a listen port entry for each node that correlates with the port forwarding in step 3 below. **Please note: the final entry does NOT have a comma after as we see with 12392 above. This is correct.** 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.+this would be for **Node 2** matching the port forwarding entry above:
  
-**Node 2:** 
 <code>{ <code>{
 "uPnPEnabled": false, "uPnPEnabled": false,
 "listenPort": 12393 "listenPort": 12393
-} +}</code>
-</code>+
  
-Note that Node 2 has a DIFFERENT listenPort number than Node 1, which will match the settings in your router for port forwarding as shown in step 3 below. 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.+this would be for **Node 3** matching the port forwarding entry above:
  
-**Node 3:** 
 <code>{ <code>{
 "uPnPEnabled": false, "uPnPEnabled": false,
 "listenPort": 12394 "listenPort": 12394
-} +}</code>
-</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.+this would be for **Node 4** matching the port forwarding entry above:
  
-**Node 4:** 
 <code>{ <code>{
 "uPnPEnabled": false, "uPnPEnabled": false,
 "listenPort": 12395 "listenPort": 12395
-} +}</code>
-</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. And so on....+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.
  
-3Login 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. +5) Start the core on each node:
- +
-4) Set port forwarding for each node as shown in the following. Internal and external for each node will be unique and NOT match the other 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.) +
- +
-5. Start the core on each node:+
 <code>cd qortal && ./start.sh</code> <code>cd qortal && ./start.sh</code>
- 
 =====Third Party Guides===== =====Third Party Guides=====
  
port_forwarding.txt · Last modified: 06/17/2023 12:33 by crowetic