This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
port_forwarding [01/30/2023 18:11] – gisele_h | 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 |
+ | |||
+ | 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. | ||
- | 1) Stop the core: | ||
- | < | ||
- | 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 ' | + | =====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 | ||
- | 3) Login to your router and set the IP address of the node to " | + | We will provide **basic overall instructions** here for understanding. |
- | 4) In your router, | + | 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**.) |
- | Inbound: 12392 (sometimes ‘inbound’ is titled ‘internal’) | + | |
- | Outbound 12392 (sometimes ‘outbound’ is titled ‘external’) | + | |
- | Protocol: TCP | + | |
- | 5) Start your core: | + | 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. |
- | < | + | |
+ | **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... | ||
- | ===== More Than One Node On Your Home Network ===== | + | **Node 1** - Internal port: 12392, external port: 12392 |
- | If you have more than one node on your network, then you’ll want to: | + | **Node 2** - Internal port: 12392, external port: 22392 |
- | + | ||
- | | + | |
- | | + | |
- | | + | |
- | | + | |
- | 1) 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 3** - Internal port: 12392, external port: 32392 |
- | 2) Set port forwarding | + | etc... You can use ANY port you like for the different external port, as long as it **doesn' |
- | **Node 1** Internal: 12392 External: 12392 | + | **All that needs to change |
- | + | ||
- | **Node 2** Internal: 12393 External: 12393 | + | |
- | + | ||
- | **Node 3** Internal: 12394 External: 12394 | + | |
- | + | ||
- | **Node 4** Internal: 12395 External: 12395 | + | |
- | + | ||
- | etc. | + | |
- | + | ||
- | (Just change the last digit in each number.) | + | |
- | + | ||
- | 3) Stop the core by entering the following command in the terminal: | + | |
- | + | ||
- | < | + | |
- | + | ||
- | 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: | + | |
- | + | ||
- | this would be for **Node 1** matching the port forwarding | + | |
- | + | ||
- | < | + | |
- | " | + | |
- | " | + | |
- | }</ | + | |
- | + | ||
- | this would be for **Node 2** matching | + | |
- | + | ||
- | < | + | |
- | " | + | |
- | " | + | |
- | }</ | + | |
- | + | ||
- | this would be for **Node 3** matching the port forwarding entry above: | + | |
- | + | ||
- | < | + | |
- | " | + | |
- | " | + | |
- | }</ | + | |
- | + | ||
- | this would be for **Node 4** matching the port forwarding entry above: | + | |
- | + | ||
- | < | + | |
- | " | + | |
- | " | + | |
- | }</ | + | |
- | If you have settings already displayed, look for the uPnPEnabled section, if it exists, simply replace ' | ||
- | 5) Start the core on each node: | ||
- | < | ||
=====Third Party Guides===== | =====Third Party Guides===== | ||