This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
port_forwarding [09/15/2022 08:43] – gfactor | port_forwarding [06/17/2023 12:33] (current) – cleaned up, made much simpler crowetic | ||
---|---|---|---|
Line 5: | Line 5: | ||
This can increase connections/ | This can increase connections/ | ||
- | ===== 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 | + | **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 | + | 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 |
- | 1) Open your settings.json | + | Simply edit **settings.json** for the nodes ASIDE FROM THE FIRST NODE, and change |
- | < | + | |
- | " | + | |
- | " | + | |
- | } | + | |
- | </ | + | |
- | 2) Login to your router and set the IP address of the node to STATIC. This will prevent the node’s IP address from changing and affecting all of this configuration. | ||
- | 3) 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 ===== | ||
- | |||
- | If you have more than one node on your network, then you’ll want to do the following: | ||
- | |||
- | 1) Open your settings.json - this will be blank which indicates you have the default settings. You will then modify your json settings. Below is an example of what you would enter for two nodes for EXAMPLE: | ||
< | < | ||
- | " | + | " |
- | " | + | }</ |
- | "listenPort: 12393 | + | |
- | } | + | |
- | </ | + | |
- | What we are doing here, is adding a listen port entry for each node that correlates with the port forwarding | + | =====Networks Without uPnP===== |
+ | On networks that do NOT have uPnP available, you will need to **enable | ||
- | So if you had three nodes: | + | We will provide **basic overall instructions** here for understanding. |
- | < | + | 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**.) |
- | " | + | |
- | " | + | |
- | " | + | |
- | " | + | |
- | } | + | |
- | </ | + | |
- | If you had four 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. |
- | + | ||
- | < | + | |
- | " | + | |
- | " | + | |
- | " | + | |
- | " | + | |
- | " | + | |
- | } | + | |
- | </ | + | |
- | And so on… | + | **You do NOT need to modify any further settings |
- | 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. | + | **Node 1** - Internal port: 12392, external port: 12392 |
- | 3) Set port forwarding for each node as shown in the following. | + | **Node 2** - Internal |
- | Node 1 Internal: 12392 External: 12392 | + | **Node 3** - Internal |
- | Node 2 Internal: 12393 External: 12393 | + | etc... You can use ANY port you like for the different external port, as long as it **doesn' |
- | Node 3 Internal: 12394 External: 12394 | + | **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.** |
- | etc. | ||
- | (Just change the last digit in each number.) | ||
=====Third Party Guides===== | =====Third Party Guides===== | ||