fetch ws host location dynamically