opened 11:25AM - 29 May 23 UTC
type: bug
tag: regression
tag: component: server
### Software versions
Python version : 3.11.3 (tags/v3.11.3:f3909b8, Apr … 4 2023, 23:49:59) [MSC v.1934 64 bit (AMD64)]
IPython version : (not installed)
Tornado version : 6.3.2
Bokeh version : 3.1.1
BokehJS static path : C:\bokeh-error\venv\Lib\site-packages\bokeh\server\static
node.js version : v16.14.2
npm version : 8.5.0
Operating system : Windows-10-10.0.19044-SP0
### Browser name and version
_No response_
### Jupyter notebook / Jupyter Lab version
_No response_
### Expected behavior
When running bokeh server on remote server it is expected that browser would try to load static paths from the server, not from the localhost. However, it seems that it always tries to load static paths from the localhost with Bokeh 3.1.1 while Bokeh 3.1.0 works well.
This can be demonstrated from local machine as well by the following steps:
1. Minimal code
2. Run bokeh serve bokeh-error --port 5006 --allow-websocket-origin [IP_ADDRESS]:5006
3. Open browser [IP_ADDRESS]:5006/bokeh-error
### Observed behavior
Static paths are loaded from localhost instead of actual IP_ADDRESS
### Example code
```Python
from bokeh.plotting import curdoc
from bokeh.models import Button
button = Button(label="Press Me")
curdoc().add_root(button)
```
### Stack traceback or browser console output
_No response_
### Screenshots
