Not sure what all ports are required for Pi to work. Can you please list them here?
Second question is why can’t Zerodha move to port 80(http) and 443 (https) for all communication from a client system (Pi.exe) to Zerodha servers. Usually these ports are not blocked in a closed environment.
Hope Zerodha being Pioneer in may respect can Implement.