I made this code but i need help improving and debugging it
I made this code and i want to improve it. Is anyone good at networking and firewall details. Despite knowing a lot about coding. I am out of my depth here. Chatgpt helped with the planning and choice of imports so i am not acquainted with them.