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
Last revisionBoth sides next revision
port_forwarding [09/15/2022 13:01] gfactorport_forwarding [06/17/2023 12:19] – further simplification and clarification 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 =====+===== Single or Multiple nodes With uPnP Enabled=====
  
-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 unsureask 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 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** for your SECOND node and HIGHER:
  
-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: +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>{ + 
-"uPnPEnabled": false, +<code> 
-"listenPort": 12392+
 +"listenPort": 22392
 } }
 </code> </code>
  
-2) Login to your router and set the IP address of the node to STATICThis will prevent the node’s IP address from changing and affecting all of this configuration.+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!)
  
-3) In your router, configure port forwarding for this device: +**Option 2:** If your router does **NOT offer uPNP**, you will need to configure port forwarding (on your router). 
 + 
 +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. 
 + 
 +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’)
 Protocol: TCP Protocol: TCP
  
-===== More Than One Node On Your Home Network ===== 
  
-If you have more than one node on your network, then you’ll want to change the json settings on each node. **Please note: the json will have a unique entry on each of your nodes.**+===== More Than One Node On Your Home Network (no uPnP)=====
  
-1) Pay attention to which node you are going to number as Node 1, Node 2, and so on. Each node will have DIFFERENT listenPort setting. Open your settings.json for Node 1 - this will be blank which indicates you have the default settingsYou will then modify your json settings: +If you have more than one node on your network, then you’ll want to
 +  
 +  * Set static IP address for each node in the router.  
 +  * Configure port forwarding in the router for each node
  
-**Node 1:**  +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.
-<code>+
-"uPnPEnabled": false, +
-"listenPort": 12392 +
-+
-</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 aboveThis is correct.**+2) Set port forwarding for each node as shown in the followingInternal and external for each node will be unique and NOT match the other nodes:
  
-**Node 2:** +**Node 1** Internal12392 External12392
-<code>+
-"uPnPEnabled"false, +
-"listenPort"12393 +
-+
-</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.+**Node 2** Internal: 12392 External: 12393
  
-**Node 3:** +**Node 3** Internal12392 External: 12394
-<code>+
-"uPnPEnabled"false, +
-"listenPort": 12394 +
-+
-</code>+
  
-**Node 4:** +**Node 4** Internal12392 External: 12395
-<code>+
-"uPnPEnabled"false, +
-"listenPort": 12395 +
-+
-</code>+
  
-And so on....+etc 
  
-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.+(Just change the last digit in each number ONLY for the EXTERNAL portYou can leave everything else on defaults.)
  
-3) 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.) 
 =====Third Party Guides===== =====Third Party Guides=====
  
port_forwarding.txt · Last modified: 06/17/2023 12:33 by crowetic