server: listen on all IPs

This commit is contained in:
Lexi / Zoe 2018-11-11 16:29:47 +01:00
parent e54a4f0b13
commit bb2c9f0b66
1 changed files with 1 additions and 1 deletions

View File

@ -16,7 +16,7 @@ async def hello(websocket, path):
await websocket.send(greeting)
print(f"> {greeting}")
start_server = websockets.serve(hello, 'localhost', 8765)
start_server = websockets.serve(hello, '0.0.0.0', 8765)
asyncio.get_event_loop().run_until_complete(start_server)
asyncio.get_event_loop().run_forever()