diff --git a/pyexasol/connection.py b/pyexasol/connection.py index 36905fc..36f9f62 100644 --- a/pyexasol/connection.py +++ b/pyexasol/connection.py @@ -676,7 +676,7 @@ def _init_ws(self): else: self._ws.settimeout(self.options['socket_timeout']) - self.ws_ipaddr = ipaddr + self.ws_ipaddr = ipaddr or hostname self.ws_port = port self._ws_send = self._ws.send