Avoid calling InetAddress.getLocalHost() that can be very slow. Exact connection or disconnection string isn't relevant for tests anyway.
#KT-14374 Fixed
(cherry picked from commit d741895)