systemPort on UiAutomator2 doesn't have effect - solved

Hello,
I’m trying automate 2 Android devices on Mac using uiautomator2 and Appium.
Appium v1.9.0 (REV c7c227854231406d9b1399a481b959e32989ae28)

my caps and appium command:
{
“capabilities”:
[
{
“applicationName”:“S7”,
“browserName”:“android”,
“deviceName”:“S7”,
“version”:“7.0”,
“maxInstances”:1,
“platform”:“Android”,
“automationName”:“UiAutomator2”
}
],
“configuration”:
{
“cleanUpCycle”:2000,
“timeout”:30000,
“proxy”:“org.openqa.grid.selenium.proxy.DefaultRemoteProxy”,
“url”:“http://127.0.0.1:49153/wd/hub”,
“maxSession”:6,
“port”:“49153”,
“bootstrap-port”:“49154”,
“host”: “localhost”,
“register”: true,
“registerCycle”: 5000,
“hubPort”: “4444”,
“hubHost”: “localhost”
}
}
appium --nodeconfig /tmp/android_tmp.json -p 49153 --default-capabilities {“udid”:“ce12160cabfb58cd0c”, “systemPort”:8201}

For second phone:
{
“capabilities”:
[
{
“applicationName”:“S5”,
“browserName”:“android”,
“deviceName”:“S5”,
“version”:“6.0.1”,
“maxInstances”:1,
“platform”:“Android”,
“automationName”:“UiAutomator2”
}
],
“configuration”:
{
“cleanUpCycle”:2000,
“timeout”:30000,
“proxy”:“org.openqa.grid.selenium.proxy.DefaultRemoteProxy”,
“url”:“http://127.0.0.1:49154/wd/hub”,
“maxSession”:6,
“port”:“49154”,
“bootstrap-port”:“49155”,
“host”: “localhost”,
“register”: true,
“registerCycle”: 5000,
“hubPort”: “4444”,
“hubHost”: “localhost”
}
}
appium --nodeconfig /tmp/android_tmp.json -p 49154 --default-capabilities {“udid”:“8ae33400”, “systemPort”:8201}

System ports are different…but in output I see:

[debug] [UiAutomator2] Forwarding UiAutomator2 Server port 6790 to 8200
[debug] [ADB] Forwarding system: 8200 to device: 6790
[debug] [ADB] Running '/Users/sio2/.android-sdk-macosx/platform-tools/adb -P 5037 -s ce12160cabfb58cd0c forward tcp\:8200 tcp\:6790'

[debug] [UiAutomator2] Forwarding UiAutomator2 Server port 6790 to 8200
[debug] [ADB] Forwarding system: 8200 to device: 6790
[debug] [ADB] Running '/Users/sio2/.android-sdk-macosx/platform-tools/adb -P 5037 -s 8ae33400 forward tcp\:8200 tcp\:6790'

So it is not reflecting the setting of systemPort or I’m missing something?

There was issue in my script.
System port set with
–default-capabilities ‘{“udid”:"’$UDID’", “systemPort”:’$systemport’}’

is working. Weird that in 1.7.1 I don’t need to specify it and it was working…