Add getAdbServerPort function to adb

Needed for #3717 fix