polar icon indicating copy to clipboard operation
polar copied to clipboard

feat: add custom baseport for nodes

Open Abdulkbk opened this issue 10 months ago • 4 comments

This commit implements the feature that lets users set custom base ports for their nodes to avoid having port conflicts with other applications running on the same machine.

Closes #533

Description

I added a settings page with input fields to set the base ports and then save. The custom base ports persist in the settings.json file and are loaded whenever polar starts. If a node, for example, LND does not have a custom port set, the defaults from constant.ts are used

Steps to Test

  1. On the top navbar, locate the Network Setting tab and click on it.
  2. The settings page appears, fill in the custom ports and click on save.
  3. Create a network and check the ports of your nodes

Screenshots

Screenshot from 2024-04-23 18-07-58

Screenshot from 2024-04-23 18-09-15

Node Alice Screenshot from 2024-04-23 18-10-45

Node Bob Screenshot from 2024-04-23 18-11-05

Abdulkbk avatar Apr 23 '24 17:04 Abdulkbk