From 01fad9b0ac47457f92aefc0bcd24023d85736e48 Mon Sep 17 00:00:00 2001 From: Daniel Date: Wed, 31 Mar 2021 01:00:52 +0100 Subject: [PATCH] Clean up ports and ips --- Controlled/controlled-keymouse.py | 2 +- Controlled/controlled-screen.py | 4 ++-- Controller/controller-keymouse.py | 4 ++-- Controller/controller-screen.py | 2 +- 4 files changed, 6 insertions(+), 6 deletions(-) diff --git a/Controlled/controlled-keymouse.py b/Controlled/controlled-keymouse.py index 3e2a3b5..9f317f0 100644 --- a/Controlled/controlled-keymouse.py +++ b/Controlled/controlled-keymouse.py @@ -11,7 +11,7 @@ mouse = mouse.Controller() #press # device's IP address SERVER_HOST = "0.0.0.0" #(socket.gethostbyname(socket.gethostname())) -SERVER_PORT = 10001 +SERVER_PORT = 5001 # receive 4096 bytes each time BUFFER_SIZE = 128 SEPARATOR = "" diff --git a/Controlled/controlled-screen.py b/Controlled/controlled-screen.py index 54023d7..70bf8d0 100644 --- a/Controlled/controlled-screen.py +++ b/Controlled/controlled-screen.py @@ -12,8 +12,8 @@ BUFFER_SIZE = 4096 # send 4096 bytes each time step # the ip address or hostname of the server, the receiver # the port, let's use 5001 -host = "0.tcp.ngrok.io" -port = 15552 +host = "123.123.123.123" +port = 5002 # host = "0.0.0.0" # port = 5001 diff --git a/Controller/controller-keymouse.py b/Controller/controller-keymouse.py index 88dd06e..f2eb4af 100644 --- a/Controller/controller-keymouse.py +++ b/Controller/controller-keymouse.py @@ -24,10 +24,10 @@ dataToSend = "" SEPARATOR = "" BUFFER_SIZE = 128 # send 4096 bytes each time step -host = "safe-mask.auto.playit.gg" +host = "123.123.123.123" # the ip address or hostname of the server, the receiver # the port, let's use 5001 -port = 56926 +port = 5001 # create the client socket s = socket.socket() diff --git a/Controller/controller-screen.py b/Controller/controller-screen.py index 9f7eb87..24192be 100644 --- a/Controller/controller-screen.py +++ b/Controller/controller-screen.py @@ -4,7 +4,7 @@ import os # device's IP address SERVER_HOST = "0.0.0.0" #(socket.gethostbyname(socket.gethostname())) -SERVER_PORT = 5001 +SERVER_PORT = 5002 # receive 4096 bytes each time BUFFER_SIZE = 4096 SEPARATOR = ""