Change client ip to 127.0.0.1 to be universal
This commit is contained in:
parent
e4e59d127a
commit
a0010092ff
@ -7,7 +7,7 @@ from pynput.keyboard import Key, Controller
|
||||
keyboard=Controller()
|
||||
|
||||
# device's IP address
|
||||
SERVER_HOST = "10.4.27.243" #(socket.gethostbyname(socket.gethostname()))
|
||||
SERVER_HOST = "127.0.0.1" #(socket.gethostbyname(socket.gethostname()))
|
||||
SERVER_PORT = 10001
|
||||
# receive 4096 bytes each time
|
||||
BUFFER_SIZE = 128
|
||||
|
@ -7,7 +7,7 @@ from pynput.keyboard import Key, Controller
|
||||
keyboard=Controller()
|
||||
|
||||
# device's IP address
|
||||
SERVER_HOST = "10.4.27.243" #(socket.gethostbyname(socket.gethostname()))
|
||||
SERVER_HOST = "127.0.0.1" #(socket.gethostbyname(socket.gethostname()))
|
||||
SERVER_PORT = 10003
|
||||
# receive 4096 bytes each time
|
||||
BUFFER_SIZE = 128
|
||||
|
@ -9,7 +9,7 @@ import time
|
||||
mouse=Controller()
|
||||
|
||||
# device's IP address
|
||||
SERVER_HOST = "192.168.1.8" #(socket.gethostbyname(socket.gethostname()))
|
||||
SERVER_HOST = "127.0.0.1" #(socket.gethostbyname(socket.gethostname()))
|
||||
SERVER_PORT = 10002
|
||||
# receive 4096 bytes each time
|
||||
BUFFER_SIZE = 128
|
||||
|
Loading…
x
Reference in New Issue
Block a user