Configure Node with more than one local IP (Mojo branch)

From The DXSpider Documentation Wiki
Revision as of 16:16, 14 February 2023 by EA3CV (talk | contribs) (Created page with "Add the variable '''@main::localhost_names''' to allow other IP addresses to be treated in the same way as localhost in '''Configure node with Dynamic IP (Mojo branch)'''. You must include ALL the normal localhost names + any other interface names that you might want to include: <pre> set/var @main::localhost_names qw(127.0.0.1 ::1 192.168.1.30 172.16.0.20) </pre> using the qw() construction is easier than: <pre> set/var @main::localhost_names ('127.0.0.1', '::1', '19...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Add the variable @main::localhost_names to allow other IP addresses to be treated in the same way as localhost in Configure node with Dynamic IP (Mojo branch).

You must include ALL the normal localhost names + any other interface names that you might want to include:

 set/var @main::localhost_names qw(127.0.0.1 ::1 192.168.1.30 172.16.0.20)

using the qw() construction is easier than:

 set/var @main::localhost_names ('127.0.0.1', '::1', '192.168.1.30', '172.16.0.20')

but either will work. You can define as many IP addresses as you like and they can be IPV4 or 6.

These can be set in the /spider/scripts/startup

To know the Local IPs you can use:

hostname -I

Do NOT need to fiddle with this unless you specifically have more than just the normal definitions of localhost. So for 'normal' nodes with one external interface, you DO NOT NEED TO DO ANY OF THIS.

There is a utility external to the project that performs the automatic search and update process.