This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
port_forwarding [09/24/2022 01:37] – 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===== |
- | **Option 1:** 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. |
- | **Option 2:** 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) Stop the core: | + | 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. |
- | < | + | |
- | 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: | ||
- | < | ||
- | " | ||
- | " | ||
- | } | ||
- | </ | ||
- | 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 the node to " | ||
- | |||
- | 4) 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 | ||
- | |||
- | 5) Start your core: | ||
- | < | ||
- | |||
- | |||
- | ===== More Than One Node On Your Home Network ===== | ||
- | |||
- | 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.** | ||
- | * Disable uPnP in the router (if it is a feature in your router and already enabled). | ||
- | * Configure port forwarding in the router for each node. | ||
- | * Start the core on each node. | ||
- | |||
- | 1) Stop the core on each node: | ||
- | < | ||
- | |||
- | 2) 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.** If you have settings already displayed, look for the uPnPEnabled section, if it exists, simply replace ' | + | =====Networks Without uPnP===== |
- | + | On networks | |
- | **Node 2:** | + | |
- | < | + | |
- | " | + | |
- | " | + | |
- | } | + | |
- | </ | + | |
- | + | ||
- | Note that Node 2 has a DIFFERENT | + | |
- | + | ||
- | **Node 3:** | + | |
- | < | + | |
- | " | + | |
- | " | + | |
- | } | + | |
- | </ | + | |
- | + | ||
- | If you have settings already displayed, look for the uPnPEnabled section, if it exists, simply replace ' | + | |
- | + | ||
- | **Node 4:** | + | |
- | < | + | |
- | " | + | |
- | " | + | |
- | } | + | |
- | </ | + | |
- | If you have settings already displayed, look for the uPnPEnabled section, if it exists, simply replace ' | + | We will provide **basic overall instructions** here for understanding. |
- | 3) Login to your router and set the IP address of each node to STATIC. This will prevent | + | 1. Setup **static assignment** for each node machine on your LAN. - Static assignment ensures that the machine |
- | 4) Set port forwarding for each node as shown in the following. Internal and external | + | 2. Establish a **port forwarding |
- | **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 | + | **Node |
- | **Node | + | **Node |
- | **Node | + | **Node |
- | etc. | + | etc... You can use ANY port you like for the different external port, as long as it **doesn' |
- | (Just change the last digit in each number.) | + | **All that needs to change |
- | 5. Start the core on each node: | ||
- | < | ||
=====Third Party Guides===== | =====Third Party Guides===== |