This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionNext revisionBoth sides next revision | ||
port_forwarding [01/30/2023 08:27] – old revision restored (09/24/2022 01:37) gfactor | port_forwarding [01/30/2023 19:40] – gfactor | ||
---|---|---|---|
Line 16: | Line 16: | ||
2) 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: | 2) 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: | ||
< | < | ||
- | " | + | " |
- | " | + | |
} | } | ||
</ | </ | ||
Line 37: | Line 36: | ||
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 | + | * 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) Login to your router and set the IP address of the node to " |
- | < | + | |
- | 2) Pay attention to which node you are going to number | + | 2) Set port forwarding for each node as shown in the following. Internal stays the same and external for each node will be unique and NOT match the other nodes, also set protocol for TCP: |
- | **Node 1:** | + | **Node 1** Internal: 12392 External: 12392 Protocol: TCP |
- | < | + | |
- | " | + | |
- | " | + | |
- | } | + | |
- | </ | + | |
- | What we are doing here, is adding a listen port entry for each node that correlates with the port forwarding in step 3 below. | + | **Node 2** Internal: 12392 External: 12393 Protocol: TCP |
- | **Node | + | **Node |
- | < | + | |
- | " | + | |
- | " | + | |
- | } | + | |
- | </ | + | |
- | 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 ' | + | **Node 4** Internal: 12392 External: 12395 Protocol: TCP |
- | **Node 3:** | + | etc. |
- | < | + | |
- | " | + | |
- | " | + | |
- | } | + | |
- | </ | + | |
- | If you have settings already displayed, look for the uPnPEnabled section, if it exists, simply replace ' | + | (Just change |
- | **Node 4:** | + | 3) Stop the core by entering the following command in the terminal: |
- | < | + | |
- | " | + | |
- | " | + | |
- | } | + | |
- | </ | + | |
- | If you have settings already displayed, look for the uPnPEnabled section, if it exists, simply replace ' | + | < |
- | 3) Login to your router and set the IP address of each node to STATIC. This will prevent | + | 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 for each node and click save: |
- | 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 | + | If you have settings already displayed, look for the uPnPEnabled section, if it exists, simply replace ' |
- | + | ||
- | **Node 2** Internal: 12393 External: 12393 | + | |
- | + | ||
- | **Node 3** Internal: 12394 External: 12394 | + | |
- | + | ||
- | **Node 4** Internal: 12395 External: 12395 | + | |
- | + | ||
- | etc. | + | |
- | + | ||
- | (Just change | + | |
- | 5. Start the core on each node: | + | 5) Start the core on each node: |
< | < | ||
Line 122: | Line 92: | ||
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. | 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. | ||
- |