title: bokeh server- rejected connection because host is not in whitelist
body: <p>I am trying to run a simple bokeh server script on my local machine:</p>
  
  <pre><code>#app.py
  from bokeh.io import curdoc
  from bokeh.models import ColumnDataSource
  from bokeh.plotting import figure
  from random import randrange
  #create figure
  f=figure(x_range=(0,11),y_range=(0,11))
  
  #create columndatasource
  source=ColumnDataSource(data=dict(x=[],y=[]))
  
  #create glyphs
  f.circle(x='x',y='y',size=8,fill_color='olive',line_color='yellow',source=source)
  
  #create periodic function
  def update():
      new_data=dict(x=[randrange(1,10)],y=[randrange(1,10)])
      source.stream(new_data,rollover=15)
      print(source.data)
  
  #add figure to curdoc and configure callback
  curdoc().add_root(f)
  curdoc().add_periodic_callback(update,1000)`
  </code></pre>
  
  <p>On the command line I tried various combinations of:</p>
  
  <p><code>bokeh serve app.py</code>
  <code>bokeh serve app.py --port 5100</code>
  <code>bokeh serve app.py --host *</code>
  <code>bokeh serve app.py --allow-websocket-origin=127.0.0.1:80</code></p>
  
  <p>they all return a message saying the host was rejected because it is not on the whitelist. I am running windows. What is going wrong?</p>
  
  <p>Hilariously, I actually got it working before lunch. After rewarding myself with food, it stopped working and I have not been able to get it since. I believe the working combination used <code>--port</code> and <code>--allow-websocket</code></p>