Clean up ports and ips

This commit is contained in:
Daniel 2021-03-31 01:00:52 +01:00
parent 8338243950
commit 01fad9b0ac
4 changed files with 6 additions and 6 deletions

View File

@ -11,7 +11,7 @@ mouse = mouse.Controller()
#press #press
# device's IP address # device's IP address
SERVER_HOST = "0.0.0.0" #(socket.gethostbyname(socket.gethostname())) SERVER_HOST = "0.0.0.0" #(socket.gethostbyname(socket.gethostname()))
SERVER_PORT = 10001 SERVER_PORT = 5001
# receive 4096 bytes each time # receive 4096 bytes each time
BUFFER_SIZE = 128 BUFFER_SIZE = 128
SEPARATOR = "<SEPARATOR>" SEPARATOR = "<SEPARATOR>"

View File

@ -12,8 +12,8 @@ BUFFER_SIZE = 4096 # send 4096 bytes each time step
# the ip address or hostname of the server, the receiver # the ip address or hostname of the server, the receiver
# the port, let's use 5001 # the port, let's use 5001
host = "0.tcp.ngrok.io" host = "123.123.123.123"
port = 15552 port = 5002
# host = "0.0.0.0" # host = "0.0.0.0"
# port = 5001 # port = 5001

View File

@ -24,10 +24,10 @@ dataToSend = ""
SEPARATOR = "<SEPARATOR>" SEPARATOR = "<SEPARATOR>"
BUFFER_SIZE = 128 # send 4096 bytes each time step 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 ip address or hostname of the server, the receiver
# the port, let's use 5001 # the port, let's use 5001
port = 56926 port = 5001
# create the client socket # create the client socket
s = socket.socket() s = socket.socket()

View File

@ -4,7 +4,7 @@ import os
# device's IP address # device's IP address
SERVER_HOST = "0.0.0.0" #(socket.gethostbyname(socket.gethostname())) SERVER_HOST = "0.0.0.0" #(socket.gethostbyname(socket.gethostname()))
SERVER_PORT = 5001 SERVER_PORT = 5002
# receive 4096 bytes each time # receive 4096 bytes each time
BUFFER_SIZE = 4096 BUFFER_SIZE = 4096
SEPARATOR = "<SEPARATOR>" SEPARATOR = "<SEPARATOR>"