This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
port_forwarding [09/15/2022 13:01] – gfactor | port_forwarding [05/16/2025 18:37] (current) – [Third Party Guides] 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 change the json settings on each node. **Please note: the json will have a unique entry on each of your nodes.** | ||
- | |||
- | 1) 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: | ||
- | |||
- | **Node 1:** | ||
< | < | ||
- | " | + | " |
- | " | + | }</ |
- | } | + | |
- | </ | + | |
- | + | ||
- | 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.** | + | |
- | + | ||
- | **Node 2:** | + | |
- | < | + | |
- | " | + | |
- | " | + | |
- | } | + | |
- | </ | + | |
- | + | ||
- | 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 3:** | + | |
- | < | + | |
- | " | + | |
- | " | + | |
- | } | + | |
- | </ | + | |
- | + | ||
- | **Node 4:** | + | |
- | < | + | |
- | " | + | |
- | " | + | |
- | } | + | |
- | </ | + | |
- | + | ||
- | And so on.... | + | |
- | + | ||
- | 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. | + | |
- | + | ||
- | 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 | + | =====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. | ||
- | etc. | + | We will provide **basic overall instructions** here for understanding. |
- | (Just change | + | 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. |
- | =====Third Party Guides===== | + | |
- | Here you can find step by step info for specific | + | 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. |
- | Static IP guide: https://www.coolblue.nl/ | + | **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... |
- | Port forwarding guide: https:// | + | **Node 1** - Internal port: 12392, external port: 12392 |
+ | **Node 2** - Internal port: 12392, external port: 22392 | ||
- | ===== How to Port Forward with Advanced Settings ===== | + | **Node 3** - Internal port: 12392, external port: 32392 |
- | It is never a good idea to add your node in DMZ. That will stop all the DPI and SPI and if you have the API enabled and white listed, you are putting your computer at risk! DMZ bypasses the SPI mechanism of the built in filters and all the internet traffic | + | etc... You can use ANY port you like for the different external port, as long as it **doesn' |
- | Also add UPnP text. If a router has it then it must be enabled. UPnP or NAT-pmp opens dynamic | + | |
- | 219.88.183.49: | + | **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.** |
- | 192.168.100.83: | ||
- | Look at the second IP address with a dynamic port. This is UPnP working. Instead of 12392 , it has opened a 44380 port for TCP handshake / connect / ACK. | ||