I have a problem with these client and server codes, I keep getting the [Errno 10061] No connection could be made because the target machine actively refused it
There is no relationship between error and firewall.
first, run server program, then run client program in another shell of python
and it will work