@plexhex07
To add to FordGuy,
If you are using a machine with systemd (cat /proc/1/comm returns systemd) you’ll need to put the Environment variables in an override.conf file.
See here:
Additionally, Manually mapped port is stored in the Preferences.xml file after successful connect.