Enable client-port in release mode

Review 1186 by @Tryneus
Closes #1912
Make sure toInt is defined before calling it -- Related to #1934
Make sure toInt is defined before calling it -- Related to #1934
Merge branch 'v1.11.x' into next
Merge branch 'next' into sam_alt