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
port_forwarding [06/17/2023 12:19] – further simplification and clarification croweticport_forwarding [06/17/2023 12:33] (current) – cleaned up, made much simpler crowetic
Line 13: Line 13:
 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.  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>{
 "listenPort": 22392 "listenPort": 22392
-} +}</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. 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). +
- +
-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’) +
-Outbound 12392 (sometimes ‘outbound’ is titled ‘external’) +
-Protocol: TCP +
  
-===== More Than One Node On Your Home Network (no uPnP)=====+=====Networks Without uPnP===== 
 +On networks that do NOT have uPnP available, you will need to **enable port forwarding and static assignment** to obtain incoming connections. Doing this will be DIFFERENT on any given router. You will need to obtain instructions for your router from an internet search as far as the terminology and specific settings that you will need. 
  
-If you have more than one node on your network, then you’ll want to: +We will provide **basic overall instructions** here for understanding.
-  +
-  Set a static IP address for each node in the router.  +
-  Configure port forwarding in the router for each node+
  
-1) Set the IP address of each node to STATICThis will prevent the node’s IP address from changing and affecting all of this configuration.+1. Setup **static assignment** for each node machine on your LAN- Static assignment ensures that the machine will obtain the **same LAN IP address** every time, from your router. (Some routers give static assignment other names, most of the time it will be located under **DHCP settings**.)
  
-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:+2. Establish a **port forwarding (or DNAT) entry** in your router, for each of your statically assigned node machines, changing the **external port** of each.
  
-**Node 1** Internal: 12392 External: 12392+**You do NOT need to modify any further settings on your NODE**, simply add new entries for each node machine with a **DIFFERENT EXTERNAL PORT**. See below for an overall idea...
  
-**Node 2** Internal: 12392 External12393+**Node 1** Internal port: 12392, external port12392
  
-**Node 3** Internal: 12392 External12394+**Node 2** Internal port: 12392, external port22392
  
-**Node 4** Internal: 12392 External12395+**Node 3** Internal port: 12392, external port32392
  
-etc.  +etc... You can use ANY port you like for the different external port, as long as it **doesn't go over 65535** as that is the MAX port in the tcpv4 port range. Once you HAVE set different external ports for each, you can **check your external IP address** with a service like https://whatismyipaddress.com (look for ipv4 address there) and you will know what the peer address for Qortal will be for each of your nodes, with your external IP and whatever external port you set for each node.
  
-(Just change the last digit in each number ONLY for the EXTERNAL port. You can leave everything else on defaults.)+**All that needs to change is the EXTERNAL port**, port forwarding will allow you to forward to the **SAME internal port on DIFFERENT IPs, this way no modifications of Qortal settings are required.** 
  
  
port_forwarding.txt · Last modified: 06/17/2023 12:33 by crowetic