diff --git a/client/client-main.py b/client/client-main.py index 2cff8b6..5f2429d 100644 --- a/client/client-main.py +++ b/client/client-main.py @@ -43,7 +43,7 @@ async def sendData(): global data - uri = 'ws://34.73.189.184:9254' + uri = 'ws://192.168.1.114:9254' async with websockets.connect(uri) as websocket: await websocket.send(data) diff --git a/server/server-main.py b/server/server-main.py index 7d63de2..fb999f7 100644 --- a/server/server-main.py +++ b/server/server-main.py @@ -28,14 +28,14 @@ async def pasteAndSend(data): await channel.send(f"Report: {pasteLink}") async def reciever(): - host = 'ws://localhost:9254' + host = 'ws://192.168.1.114:9254' async with websockets.connect(host) as socket: print('Socket server running') data = await socket.recv() data = pickle.loads(data) pasteAndSend(data) -server = websockets.serve(reciever, 'localhost', 9254) +server = websockets.serve(reciever, 'localhost', 9254, ping_timeout=None) asyncio.get_event_loop().run_until_complete(server) bot.run(discordKey)