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