Configure node with Dynamic IP (Mojo branch): Difference between revisions

From The DXSpider Documentation Wiki
Jump to navigation Jump to search
(Created page with "Introduce aliasing for localhost in DX Spots and outgoing PC92 A records on login. There are two variables which can be set with the alias to use: <pre> $main::localhost_alias_ipv4 $main::localhost_alias_ipv6 </pre> These can be set in the '''/spider/scripts/startup''' <pre> set/var $main::localhost_alias_ipv4 = "your_IP" </pre> but this is only necessary if the node has more than one interface, virtual hosts or Dynamic IP. You can check what your IP is with the foll...")
 
No edit summary
 
(3 intermediate revisions by the same user not shown)
Line 15: Line 15:
  curl ifconfig.me
  curl ifconfig.me
</pre>
</pre>
For this variable to work, you must run it the first time:
<pre>
set/var $main::localhost_alias_ipv4 = "2.2.2.2"
</pre>
If there is ONLY ONE ipv4 and/or ipv6 Static IP address on the node machine then these variables will be automatically populated on first use.
If there is ONLY ONE ipv4 and/or ipv6 Static IP address on the node machine then these variables will be automatically populated on first use.
But the SAFE thing to do is to set them in the startup file.
But the SAFE thing to do is to set them in the startup file.


There is a utility external to the project that performs the automatic search and update process.
There is a script called update_ip.pl (in contributions) that automatically updates this variable.
 
It can be downloaded at [https://raw.githubusercontent.com/EA3CV/dxspider_info/main/update_ip.pl]

Latest revision as of 15:51, 22 July 2024

Introduce aliasing for localhost in DX Spots and outgoing PC92 A records on login. There are two variables which can be set with the alias to use:

 $main::localhost_alias_ipv4
 $main::localhost_alias_ipv6

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

 set/var $main::localhost_alias_ipv4 = "your_IP"

but this is only necessary if the node has more than one interface, virtual hosts or Dynamic IP.

You can check what your IP is with the following command:

 curl ifconfig.me

For this variable to work, you must run it the first time:

 set/var $main::localhost_alias_ipv4 = "2.2.2.2"

If there is ONLY ONE ipv4 and/or ipv6 Static IP address on the node machine then these variables will be automatically populated on first use. But the SAFE thing to do is to set them in the startup file.

There is a script called update_ip.pl (in contributions) that automatically updates this variable.

It can be downloaded at [1]