We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1522f7e commit ea4c3aaCopy full SHA for ea4c3aa
plotly_resampler/figure_resampler/figure_resampler.py
@@ -164,7 +164,7 @@ def show_dash(
164
165
# check if self._port is already in use
166
with socket.socket(socket.AF_INET, socket.SOCK_STREAM) as s:
167
- if s.connect_ex(('localhost', int(self._port))) == 0:
+ if s.connect_ex((self._host, int(self._port))) == 0:
168
error_message = "Address already in use\n" \
169
f"Port {self._port} is in use by another program. " \
170
"Either identify and stop that program, or start the server with a different port."
0 commit comments