I am using the v2.3.0 libraries.
Have you actually tried changing listening ports? "Something" is happening, because when I switch ports (either assigning it or using your setPort method), the new port takes a long time to timeout (and then not available) and the old port comes back immediately as not available.