Server.py runs a TCP server to send the Answer to the Question.
python server.py --port 7653
you can enter exit
to quit the server
For use on a network with differenet machines:
- find out the ip of the machine running the server
- run the client on the other machine with the ip of the server
- run the server with the ip of the server with the
--host
flag
--host
: to specify the host to listen on (default: localhost)python server.py --host localhost --port 7653
--port
: to specify the port to listen on (default: 7654)python server.py --port 7653
--debug
: to enable debug mode (default: False)python server.py --debug true
--prefix
: to specify the answer prefix (default: "➜ ") / can be anystringpython server.py --prefix "zum beispiel!: "
Server_double.py runs a TCP server for 2 different ports for both Touchdesigner(td
) and the Python Script(py
).
By default:
--port-td
port is7653
--port-py
port is7654
python server_double.py --host 192.168.1.69 --port-td 7653 --port-py 7654
parser.add_argument('--port-td', type=int, dest='porttd', default='7654')
parser.add_argument('--port-py', type=int, dest='portpy', default='7655')